Possible bug with brace initialization
Posted: Fri Mar 22, 2013 3:54 am
Edit: I am using version 5.1 of the IDE, on Windows XP.
When I use the new brace/paren init feature in C++11, such as
I expect either to create a null initialized buffer of chars.
This works for the paren version but for the brace version I get
When I use the new brace/paren init feature in C++11, such as
Code: Select all
char *name1=new char [20](); // paren version
char *name2=new char [20]{}; // brace version
This works for the paren version but for the brace version I get
"internal compiler error: in gimplify_init_construnctor at gimplify.c:3978