[Development] clang and auto-setting of QT_NO_EXCEPTIONS

René J. V. Bertin rjvbertin at gmail.com
Thu May 25 14:34:59 CEST 2017


Qglobal.h sets QT_NO_EXCEPTIONS automatically when building with -fno-
exceptions, but only when a GNU compiler is used, not when using clang. Is that 
an oversight or rather because it's impossible with clang?

Curiously this doesn't always lead to errors in template classes that use 
QT_TRY, QT_THROW etc. in code built with -fno-exceptions, I wonder how that can 
be explained.


More information about the Development mailing list