[Development] Compiler errors with clang 3.1

Stephen Chu stephen at ju-ju.com
Mon May 21 20:53:06 CEST 2012

On 5/18/12 4:56 PM, Stephen Chu wrote:
> <https://bugreports.qt-project.org/browse/QTBUG-25817>
> I tried both MacPort clang 3.1 and Apple's so-called LLVM 4.0 to build
> Qt and create apps with C++11 turned on. Both failed with constexpr errors.
> On the other hand, compiling using gcc 4.7 is successful. I am not sure
> if gcc is more lex on this or Q_DECL_CONSTEXPR macro is not defined.
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

BTW. Apple LLVM 4 (clang 3.1) is from Xcode 4.4 DP5. Once Apple ships 
Xcode 4.4, it will become the default compiler in both 10.8 and 10.7.

Just a heads up.

More information about the Development mailing list