[MacPorts] #57578: __has_feature(cxx_exceptions) returns true but fails to compile std::uncaught_exceptions()

MacPorts noreply at macports.org
Mon Nov 12 11:00:58 UTC 2018


#57578: __has_feature(cxx_exceptions) returns true but fails to compile
std::uncaught_exceptions()
------------------------+----------------------
  Reporter:  noloader   |      Owner:  jeremyhu
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  clang-6.0  |
------------------------+----------------------

Comment (by jmroot):

 Replying to [comment:8 jmroot]:
 > I don't see any mention of `__has_feature` on the page you linked

 Which is because this macro is not itself part of any C++ standard. But
 the clang docs list `__has_feature(cxx_exceptions)` under C++98 and
 confirm that it only really tells you that you're not being compiled with
 -fno-exceptions.

-- 
Ticket URL: <https://trac.macports.org/ticket/57578#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list