Re: [Development] Compiler errors with clang 3.1

2012-05-21 Thread Olivier Goffart
On Monday 21 May 2012 18:01:22 Stephen Chu wrote: > On 5/21/12 5:22 PM, Thiago Macieira wrote: > > On segunda-feira, 21 de maio de 2012 17.07.51, Stephen Chu wrote: > >> On 5/21/12 4:28 PM, Thiago Macieira wrote: > >>> On sexta-feira, 18 de maio de 2012 16.56.09, Stephen Chu wrote: > On the ot

Re: [Development] Compiler errors with clang 3.1

2012-05-21 Thread Thiago Macieira
On segunda-feira, 21 de maio de 2012 18.01.22, Stephen Chu wrote: > Q_DECL_CONSTEXPR inline QByteArray(QByteArrayDataPtr dd) > > : d(reinterpret_cast(dd.ptr)) > > { > } > > And I don't think it can ever be made a constexpr. I agree. -- Thiago Macieira - thiago.macieira (AT)

Re: [Development] Compiler errors with clang 3.1

2012-05-21 Thread Stephen Chu
On 5/21/12 5:22 PM, Thiago Macieira wrote: > On segunda-feira, 21 de maio de 2012 17.07.51, Stephen Chu wrote: >> On 5/21/12 4:28 PM, Thiago Macieira wrote: >>> On sexta-feira, 18 de maio de 2012 16.56.09, Stephen Chu wrote: On the other hand, compiling using gcc 4.7 is successful. I am not su

Re: [Development] Compiler errors with clang 3.1

2012-05-21 Thread Thiago Macieira
On segunda-feira, 21 de maio de 2012 17.07.51, Stephen Chu wrote: > On 5/21/12 4:28 PM, Thiago Macieira wrote: > > On sexta-feira, 18 de maio de 2012 16.56.09, Stephen Chu wrote: > >> 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_C

Re: [Development] Compiler errors with clang 3.1

2012-05-21 Thread Stephen Chu
On 5/21/12 4:28 PM, Thiago Macieira wrote: > On sexta-feira, 18 de maio de 2012 16.56.09, Stephen Chu wrote: >> 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. > > GCC seems to be more lax. I recommend p

Re: [Development] Compiler errors with clang 3.1

2012-05-21 Thread Thiago Macieira
On sexta-feira, 18 de maio de 2012 16.56.09, Stephen Chu wrote: > 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. GCC seems to be more lax. I recommend providing us with fixes to make Qt compile under th

Re: [Development] Compiler errors with clang 3.1

2012-05-21 Thread Stephen Chu
On 5/18/12 4:56 PM, Stephen Chu wrote: > > > 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

[Development] Compiler errors with clang 3.1

2012-05-18 Thread Stephen Chu
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