public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27019]  New: [4.1/4.2 regression] ICE with designated initializers
@ 2006-04-04  9:17 reichelt at gcc dot gnu dot org
  2006-04-04  9:29 ` [Bug c++/27019] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-04  9:17 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE since GCC 4.1.0:

======================
struct A
{
    int i;
    int z[1];
};

A a = { z:{} };
======================

bug.cc:7: sorry, unimplemented: non-trivial designated initializers not
supported
bug.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

Before we got:

bug.cc:7: sorry, unimplemented: non-trivial labeled initializers
bug.cc:7: error: initializer for scalar variable requires one element


-- 
           Summary: [4.1/4.2 regression] ICE with designated initializers
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, 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=27019


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

end of thread, other threads:[~2006-07-11  9:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
2006-04-04  9:29 ` [Bug c++/27019] " pinskia at gcc dot gnu dot org
2006-04-16 19:16 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:39 ` mmitchel at gcc dot gnu dot org
2006-06-22 16:40 ` sje at cup dot hp dot com
2006-06-23 21:58 ` sje at gcc dot gnu dot org
2006-06-24  1:53 ` [Bug c++/27019] [4.1 " pinskia at gcc dot gnu dot org
2006-07-07 15:15 ` sje at gcc dot gnu dot org
2006-07-10 21:05 ` sje at gcc dot gnu dot org
2006-07-10 21:06 ` sje at gcc dot gnu dot org
2006-07-11  9:20 ` reichelt 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).