[llvm-bugs] [Bug 39631] __has_feature(cxx_exceptions) returns true but fails to compile std::uncaught_exceptions()

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 11 16:55:54 PST 2018


Erik Pilkington <erik.pilkington at gmail.com> changed:

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

--- Comment #1 from Erik Pilkington <erik.pilkington at gmail.com> ---
Compiling with exceptions enabled and the availability of
std::uncaught_exceptions in the libcxx dylib are actually unrelated. If you
want to use std::uncaught_exceptions on a program you're deploying before osx
10.12 then you should either guard the call in a `if (@available(macos 10.12,
*))` to check your OS version at run time, or use some macros from
<Availability.h> to check your deployment target at compile time.

Does that answer your question? I'm going to close this as invalid, feel free
to reopen if necessary.

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/20181112/03f0391f/attachment.html>

More information about the llvm-bugs mailing list