This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52467] New: ICE: canonical types differ for int [0] and int [0]
- From: "mg200 at uni dot brighton.ac.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Mar 2012 13:44:55 +0000
- Subject: [Bug c++/52467] New: ICE: canonical types differ for int [0] and int [0]
- Auto-submitted: auto-generated
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] = {};".