public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18809] New: ICE after a couple of errors with a simple invalid C code
@ 2004-12-03 13:54 pinskia at gcc dot gnu dot org
  2004-12-06  5:00 ` [Bug c/18809] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-03 13:54 UTC (permalink / raw)
  To: gcc-bugs

I tried to compile rs6000.c outside of the gcc objdir just for checking on a flag but I found we produced 
an ICE after some errors.
Reduced to:
static int b (enum a mode) {}
static void c (void) { b (2); }

new.c:1: warning: 'enum a' declared inside parameter list
new.c:1: warning: its scope is only this definition or declaration, which is probably not what you want
new.c:1: error: parameter 1 ('mode') has incomplete type
new.c: In function 'c':
new.c:2: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in 
convert_arguments, at c-typeck.c:2170
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This looks not to be a regression but I could be wrong.

-- 
           Summary: ICE after a couple of errors with a simple invalid C
                    code
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-01-22  0:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-03 13:54 [Bug c/18809] New: ICE after a couple of errors with a simple invalid C code pinskia at gcc dot gnu dot org
2004-12-06  5:00 ` [Bug c/18809] " pinskia at gcc dot gnu dot org
2004-12-18  0:02 ` reichelt at gcc dot gnu dot org
2004-12-18 22:14 ` reichelt at gcc dot gnu dot org
2005-01-22  0:13 ` cvs-commit at gcc dot gnu dot org
2005-01-22  0:15 ` 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).