public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18946] New: [4.0 regression] ICE in pushdecl
@ 2004-12-12 20:37 schwab at suse dot de
2004-12-12 20:38 ` [Bug c/18946] " schwab at suse dot de
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: schwab at suse dot de @ 2004-12-12 20:37 UTC (permalink / raw)
To: gcc-bugs
$ cat pushdecl.c
void bar () { { if (foo) foo (); } }
$ gcc -O pushdecl.c
pushdecl.c: In function ‘bar’:
pushdecl.c:1: error: ‘foo’ undeclared (first use in this function)
pushdecl.c:1: error: (Each undeclared identifier is reported only once
pushdecl.c:1: error: for each function it appears in.)
pushdecl.c:1: internal compiler error: tree check: expected class
‘declaration’, have ‘exceptional’ (error_mark) in pushdecl, at c-decl.c:1989
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.suse.de/feedback> for instructions.
--
Summary: [4.0 regression] ICE in pushdecl
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schwab at suse dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18946
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/18946] [4.0 regression] ICE in pushdecl
2004-12-12 20:37 [Bug c/18946] New: [4.0 regression] ICE in pushdecl schwab at suse dot de
@ 2004-12-12 20:38 ` schwab at suse dot de
2004-12-12 20:40 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: schwab at suse dot de @ 2004-12-12 20:38 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18946
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/18946] [4.0 regression] ICE in pushdecl
2004-12-12 20:37 [Bug c/18946] New: [4.0 regression] ICE in pushdecl schwab at suse dot de
2004-12-12 20:38 ` [Bug c/18946] " schwab at suse dot de
@ 2004-12-12 20:40 ` pinskia at gcc dot gnu dot org
2004-12-13 15:52 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-12 20:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-12 20:40 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |error-recovery, ice-checking
Last reconfirmed|0000-00-00 00:00:00 |2004-12-12 20:40:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18946
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/18946] [4.0 regression] ICE in pushdecl
2004-12-12 20:37 [Bug c/18946] New: [4.0 regression] ICE in pushdecl schwab at suse dot de
2004-12-12 20:38 ` [Bug c/18946] " schwab at suse dot de
2004-12-12 20:40 ` pinskia at gcc dot gnu dot org
@ 2004-12-13 15:52 ` pinskia at gcc dot gnu dot org
2004-12-15 20:42 ` phython at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-13 15:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-13 15:52 -------
: Search converges between 2004-08-26-trunk (#525) and 2004-08-27-trunk (#526).
I think this was caused by:
2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
PR c/13801
There was no other changes to the C front-end on that day.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jsm28 at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18946
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/18946] [4.0 regression] ICE in pushdecl
2004-12-12 20:37 [Bug c/18946] New: [4.0 regression] ICE in pushdecl schwab at suse dot de
` (2 preceding siblings ...)
2004-12-13 15:52 ` pinskia at gcc dot gnu dot org
@ 2004-12-15 20:42 ` phython at gcc dot gnu dot org
2005-01-20 15:02 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: phython at gcc dot gnu dot org @ 2004-12-15 20:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From phython at gcc dot gnu dot org 2004-12-15 20:42 -------
Something like:
if (b && b->decl == error_mark_node)
b = NULL;
added at around c-decl.c:1937 seems to fix this pr. I have no clue what
regression testing will come up with.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18946
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/18946] [4.0 regression] ICE in pushdecl
2004-12-12 20:37 [Bug c/18946] New: [4.0 regression] ICE in pushdecl schwab at suse dot de
` (3 preceding siblings ...)
2004-12-15 20:42 ` phython at gcc dot gnu dot org
@ 2005-01-20 15:02 ` pinskia at gcc dot gnu dot org
2005-01-27 12:39 ` cvs-commit at gcc dot gnu dot org
2005-01-27 12:40 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-20 15:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-20 15:02 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01328.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18946
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/18946] [4.0 regression] ICE in pushdecl
2004-12-12 20:37 [Bug c/18946] New: [4.0 regression] ICE in pushdecl schwab at suse dot de
` (4 preceding siblings ...)
2005-01-20 15:02 ` pinskia at gcc dot gnu dot org
@ 2005-01-27 12:39 ` cvs-commit at gcc dot gnu dot org
2005-01-27 12:40 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-27 12:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-27 12:38 -------
Subject: Bug 18946
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jakub@gcc.gnu.org 2005-01-27 12:38:38
Modified files:
gcc : ChangeLog c-decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg/noncompile: 20050120-1.c
Log message:
PR c/18946
* c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
(pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
(implicitly_declare): Handle error_mark_node.
* gcc.dg/noncompile/20050120-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7303&r2=2.7304
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.626&r2=1.627
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4941&r2=1.4942
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/noncompile/20050120-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18946
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/18946] [4.0 regression] ICE in pushdecl
2004-12-12 20:37 [Bug c/18946] New: [4.0 regression] ICE in pushdecl schwab at suse dot de
` (5 preceding siblings ...)
2005-01-27 12:39 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-27 12:40 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-01-27 12:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2005-01-27 12:39 -------
Fixed in CVS.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18946
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-01-27 12:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-12 20:37 [Bug c/18946] New: [4.0 regression] ICE in pushdecl schwab at suse dot de
2004-12-12 20:38 ` [Bug c/18946] " schwab at suse dot de
2004-12-12 20:40 ` pinskia at gcc dot gnu dot org
2004-12-13 15:52 ` pinskia at gcc dot gnu dot org
2004-12-15 20:42 ` phython at gcc dot gnu dot org
2005-01-20 15:02 ` pinskia at gcc dot gnu dot org
2005-01-27 12:39 ` cvs-commit at gcc dot gnu dot org
2005-01-27 12:40 ` jakub 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).