[LLVMdev] llvm-g++ doesnt support class member initialization of arrays of constants

Eli Friedman eli.friedman at gmail.com
Thu Apr 23 22:18:10 PDT 2009


On Thu, Apr 23, 2009 at 8:33 PM, Sheng Zhou <zhousheng00 at gmail.com> wrote:
> gcc 4.1.2 can compile the above code.
> llvm-gcc reports:
> x.cpp: In constructor \u2018A::A()\u2019:
> x.cpp:5: error: array used as initializer
>
> am i missing something?

It's a change in gcc, not LLVM; gcc 4.3 prints out the same error.

-Eli



More information about the llvm-dev mailing list