public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/27420]  New: ICE on invalid function definition
@ 2006-05-04 14:57 reichelt at gcc dot gnu dot org
  2006-05-05  1:20 ` [Bug c/27420] " reichelt at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-04 14:57 UTC (permalink / raw)
  To: gcc-bugs

The C frontend ICEs (since at least GCC 2.95.3) on the following
invalid code snippet:

==============================
void foo();
void foo(struct A a) {}
==============================

bug1.c:2: warning: 'struct A' declared inside parameter list
bug1.c:2: warning: its scope is only this definition or declaration, which is
probably not what you want
bug1.c:2: error: parameter 1 ('a') has incomplete type
bug1.c:2: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in self_promoting_args_p, at c-common.c:3556
Please submit a full bug report, [etc.]


-- 
           Summary: ICE on invalid function definition
           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=27420


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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-04 14:57 [Bug c/27420] New: ICE on invalid function definition reichelt at gcc dot gnu dot org
2006-05-05  1:20 ` [Bug c/27420] " reichelt at gcc dot gnu dot org
2006-05-05  1:47 ` pinskia at gcc dot gnu dot org
2006-05-05 20:03 ` patchapp at dberlin dot org
2006-05-22 12:24 ` reichelt at gcc dot gnu dot org
2006-05-22 12:27 ` 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).