public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52467] New: ICE: canonical types differ for int [0] and int [0]
@ 2012-03-03 13:45 mg200 at uni dot brighton.ac.uk
  2012-03-03 14:01 ` [Bug c++/52467] " daniel.kruegler at googlemail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mg200 at uni dot brighton.ac.uk @ 2012-03-03 13:45 UTC (permalink / raw)
  To: gcc-bugs

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] = {};".


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-04 16:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-03 13:45 [Bug c++/52467] New: ICE: canonical types differ for int [0] and int [0] mg200 at uni dot brighton.ac.uk
2012-03-03 14:01 ` [Bug c++/52467] " daniel.kruegler at googlemail dot com
2012-03-05 10:40 ` rguenth at gcc dot gnu.org
2012-03-05 11:14 ` redi at gcc dot gnu.org
2012-03-05 14:15 ` mg200 at uni dot brighton.ac.uk
2013-05-04 16:33 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).