http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49216
Summary: [C++0x][Regression] ICE on compiling new-expression
with braced-init-list for arrays
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
int main() {
new int[1]{};
}
This code becomes ICE on following versions :
4.6.0
4.6-20110527
4.7-20110523
Here's the error message ( on gcc-4.6.0 ) :
$ g++ -std=c++0x bug.cc
bug.cc: In function 'int main()':
bug.cc:2:15: internal compiler error: in gimplify_init_constructor, at
gimplify.c:3973
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.