[llvm-bugs] [Bug 38160] init_priority breaks compilation of pmr::memory_resource with GCC on OS X

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 16 13:05:20 PDT 2018


Eric Fiselier <eric at efcs.ca> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Eric Fiselier <eric at efcs.ca> ---
Fixed in r337205.

The fix is to simply remove the attribute when it's not supported (GCC on Apple
and MSVC). For GCC 7 and 8, the attribute was unneeded anyway, since they
support C++14 and that allows `ResourceInitHelper` to be initialized using
constant-initialization at compile time.

The init_priority was only needed for older GCC compilers which don't support

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180716/b315ab32/attachment.html>

More information about the llvm-bugs mailing list