public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35437]  New: [4.1/4.2/4.3/4.4 regression] ICE with struct containing incomplete type
@ 2008-03-03 21:01 reichelt at gcc dot gnu dot org
  2008-03-03 21:01 ` [Bug c/35437] " reichelt 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 @ 2008-03-03 21:01 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.0.0:

===========================
struct A
{
  int i;
  struct A a;
};

void foo()
{
  struct A b = { 0 };
}
===========================

bug.c:4: error: field 'a' has incomplete type
bug.c: In function 'foo':
bug.c:9: internal compiler error: in count_type_elements, at expr.c:5001
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2/4.3/4.4 regression] ICE with struct containing
                    incomplete type
           Product: gcc
           Version: 4.4.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=35437


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

end of thread, other threads:[~2009-03-31 15:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03 21:01 [Bug c/35437] New: [4.1/4.2/4.3/4.4 regression] ICE with struct containing incomplete type reichelt at gcc dot gnu dot org
2008-03-03 21:01 ` [Bug c/35437] " reichelt at gcc dot gnu dot org
2008-03-15  1:35 ` jsm28 at gcc dot gnu dot org
2008-07-04 22:38 ` [Bug c/35437] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-09-28 16:44 ` simartin at gcc dot gnu dot org
2008-10-07 20:59 ` simartin at gcc dot gnu dot org
2008-10-08  4:20 ` simartin at gcc dot gnu dot org
2008-10-08  4:30 ` [Bug c/35437] [4.2 " simartin at gcc dot gnu dot org
2009-03-31 15:23 ` jsm28 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).