public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27385]  New: [4.1/4.2 regression] ICE with invalid array initializer
@ 2006-05-02 12:07 reichelt at gcc dot gnu dot org
  2006-05-02 15:26 ` [Bug c++/27385] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-02 12:07 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE since GCC 4.1.0
(and in GCC 3.3, 3.3.1, 3.3.2):

========================
struct A {};

A a[] = { 0 };
========================

The compiler loops forever until it runs out of memory:
bug.cc:3: error: initializer for 'A' must be brace-enclosed
bug.cc:3: error: initializer for 'A' must be brace-enclosed
bug.cc:3: error: initializer for 'A' must be brace-enclosed
bug.cc:3: error: initializer for 'A' must be brace-enclosed
bug.cc:3: error: initializer for 'A' must be brace-enclosed
bug.cc:3: error: initializer for 'A' must be brace-enclosed
bug.cc:3: error: initializer for 'A' must be brace-enclosed
bug.cc:3: error: initializer for 'A' must be brace-enclosed
bug.cc:3: error: initializer for 'A' must be brace-enclosed
bug.cc:3: error: initializer for 'A' must be brace-enclosed
[etc.]


-- 
           Summary: [4.1/4.2 regression] ICE with invalid array initializer
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27385


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

end of thread, other threads:[~2006-05-31 20:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02 12:07 [Bug c++/27385] New: [4.1/4.2 regression] ICE with invalid array initializer reichelt at gcc dot gnu dot org
2006-05-02 15:26 ` [Bug c++/27385] " pinskia at gcc dot gnu dot org
2006-05-14 22:33 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:40 ` mmitchel at gcc dot gnu dot org
2006-05-31  4:17 ` mmitchel at gcc dot gnu dot org
2006-05-31 20:03 ` mmitchel at gcc dot gnu dot org
2006-05-31 20:04 ` mmitchel at gcc dot gnu dot org
2006-05-31 20:12 ` mmitchel at gcc dot gnu dot org
2006-05-31 20:12 ` mmitchel at gcc dot gnu dot org

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).