Page 1 of 1

Possible bug with brace initialization

Posted: Fri Mar 22, 2013 3:54 am
by Arbalest
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

Code: Select all

	char *name1=new char [20]();    // paren version
	char *name2=new char [20]{};    // brace version
I expect either to create a null initialized buffer of chars.

This works for the paren version but for the brace version I get
"internal compiler error: in gimplify_init_construnctor at gimplify.c:3978

Re: Possible bug with brace initialization

Posted: Fri Mar 22, 2013 9:37 am
by eranif
You should note that codelite is _not_ a compiler.
The error you see is probably a bug in gcc - you should report it to the MinGW mailing list not here

Eran