[cfe-dev] of -fno-exceptions, ObjC++, __EXCEPTIONS, Mac vs. Linux ... and Qt
René J.V. Bertin via cfe-dev
cfe-dev at lists.llvm.org
Thu May 25 15:32:07 PDT 2017
Hello,
I have a bit of a debate going on with a Qt dev, about whether or not it is sufficient under all conditions to test __EXCEPTIONS to know whether C++ exceptions are enabled: https://bugreports.qt.io/browse/QTBUG-61034
I think the summary at http://releases.llvm.org/3.6.0/tools/clang/docs/ReleaseNotes.html#the-exceptions-macro should be followed, but Thiago's opinion is that Apple introduced a bug in Xcode 8 (= way after clang 3.6).
His argument: clang on Linux does not define __EXCEPTIONS when -fno-exceptions is given (unless you target MachO).
I'm more inclined to consider that inconsistency a bug in clang.
Where is the truth in this matter?
Thanks,
René
More information about the cfe-dev
mailing list