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

* [Bug c/18809] ICE after a couple of errors with a simple invalid C code
  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 ` pinskia at gcc dot gnu dot org
  2004-12-18  0:02 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-06  5:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-06 05:00 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-06 05:00:13
               date|                            |


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


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

* [Bug c/18809] ICE after a couple of errors with a simple invalid C code
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-18  0:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-12-18 00:02 -------
It's indeed not a regression.

Testing patch.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
           Keywords|                            |monitored


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


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

* [Bug c/18809] ICE after a couple of errors with a simple invalid C code
  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
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-18 22:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-12-18 22:14 -------
Patch here:
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01364.html


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug c/18809] ICE after a couple of errors with a simple invalid C code
  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
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-22  0:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-22 00:13 -------
Subject: Bug 18809

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	reichelt@gcc.gnu.org	2005-01-22 00:12:28

Modified files:
	gcc            : ChangeLog c-typeck.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: pr18809-1.c 

Log message:
	PR c/18809
	* c-typeck.c (convert_arguments): Check for error_mark_node.
	
	* gcc.dg/pr18809-1.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7222&r2=2.7223
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.412&r2=1.413
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4919&r2=1.4920
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr18809-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c/18809] ICE after a couple of errors with a simple invalid C code
  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
                   ` (3 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-01-22  0:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-01-22 00:14 -------
Fixed in mainline.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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