[cfe-dev] a bug : c++ construction initialization list is not supportted

Eli Friedman eli.friedman at gmail.com
Sun May 24 21:01:25 PDT 2009


On Sun, May 24, 2009 at 8:29 PM, Jiandong Lu
<lujiandong1001 at yahoo.com.cn> wrote:
> use "g++ test.cpp -o test" to compile the file in my attachment,execute
> test. its output is
> v = 3 value = 3 in C constructor
> v = 3 value = 3 in C constructor
> but, use "clang -ccc-clang-cxx  test.cpp -o test" tp compile ,execute
> test.its output is
> v = 3 value = 0 in C constructor
> v = 3 value = 3 in C constructor
> currently, c++ construction initialization list is not supportted.

clang codegen is massively broken for C++; bug reports aren't useful
at the moment.

-Eli




More information about the cfe-dev mailing list