[Bug c++/52467] New: ICE: canonical types differ for int [0] and int [0]
mg200 at uni dot brighton.ac.uk
gcc-bugzilla@gcc.gnu.org
Sat Mar 3 13:45:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52467
Bug #: 52467
Summary: ICE: canonical types differ for int [0] and int [0]
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: mg200@uni.brighton.ac.uk
Created attachment 26815
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26815
Minimal test case
I'm not sure if an array of 0 elements is actually legal, but I get an ICE
compiling the attached test case:
$ g++ array-0.cpp
array-0.cpp:6:6: internal compiler error: canonical types differ for identical
types int [0] and int [0]
Works if a is defined as "int a[0] = {};".
More information about the Gcc-bugs
mailing list