Possible bug with brace initialization

CodeLite installation/troubleshooting forum
Arbalest
CodeLite Enthusiast
Posts: 30
Joined: Wed Oct 03, 2012 6:12 am
Genuine User: Yes
IDE Question: C++
Contact:

Possible bug with brace initialization

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Possible bug with brace initialization

Post 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
Make sure you have read the HOW TO POST thread
Post Reply