public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12560] New: [tree-ssa] Error revocery problem with enum
@ 2003-10-09 22:33 falk at debian dot org
2003-10-09 23:11 ` [Bug c/12560] [3.4 Regression] " pinskia at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: falk at debian dot org @ 2003-10-09 22:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
Summary: [tree-ssa] Error revocery problem with enum
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alphaev68-unknown-linux-gnu
GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu
falk@juist:/tmp% cat min.c
foo()
enum { a = b };
falk@juist:/tmp% gcc --version
gcc (GCC) 3.5-tree-ssa 20031009 (merged 20031005)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
falk@juist:/tmp% gcc -c min.c
min.c: In function `foo':
min.c:2: error: `b' undeclared (first use in this function)
min.c:2: error: (Each undeclared identifier is reported only once
min.c:2: error: for each function it appears in.)
min.c:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4 Regression] Error revocery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
@ 2003-10-09 23:11 ` pinskia at gcc dot gnu dot org
2003-10-26 23:07 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-09 23:11 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-09 23:11:13
date| |
Summary|[tree-ssa] Error revocery |[3.4 Regression] Error
|problem with enum |revocery problem with enum
Target Milestone|--- |3.4
Version|tree-ssa |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-09 23:11 -------
It also happens on the mainline (20031009). Also it is a regression from 3.3.1.
undeclared_variable (id=0x40100f40) at /home/gates/pinskia/src/gnu/gcc/src/gcc/c-decl.c:1967
1967 scope->shadowed = tree_cons (id, IDENTIFIER_SYMBOL_VALUE (id),
(gdb) bt
#0 undeclared_variable (id=0x40100f40) at /home/gates/pinskia/src/gnu/gcc/src/gcc/c-
decl.c:1967
#1 0x080783dc in build_external_ref (id=0x40100f40, fun=0) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/c-typeck.c:1603
#2 0x0804c613 in yyparse () at c-parse.y:596
#3 0x080525db in c_parse_file () at c-parse.y:3033
#4 0x080a3c6b in c_common_parse_file (set_yydebug=2) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/c-opts.c:1226
#5 0x083029b4 in toplev_main (argc=2, argv=0xbffec754) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/toplev.c:1792
#6 0x080c453e in main (argc=2, argv=0x2) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
main.c:35
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4 Regression] Error revocery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
2003-10-09 23:11 ` [Bug c/12560] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-10-26 23:07 ` pinskia at gcc dot gnu dot org
2003-12-08 23:28 ` reichelt at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-26 23:07 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-10-09 23:11:13 |2003-10-26 23:03:16
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-26 23:03 -------
>From Phil's regression hunter: Search converges between 2003-03-17-trunk (#247) and 2003-03
-18-trunk (#248).
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4 Regression] Error revocery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
2003-10-09 23:11 ` [Bug c/12560] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-10-26 23:07 ` pinskia at gcc dot gnu dot org
@ 2003-12-08 23:28 ` reichelt at gcc dot gnu dot org
2003-12-08 23:42 ` zack at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-12-08 23:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-12-08 23:28 -------
The regression was introduced by Zack's patch
http://gcc.gnu.org/ml/gcc-patches/2003-03/msg01594.html
http://gcc.gnu.org/ml/gcc-cvs/2003-03/msg00901.html
Zack, could you please have a look?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |zack at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4 Regression] Error revocery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
` (2 preceding siblings ...)
2003-12-08 23:28 ` reichelt at gcc dot gnu dot org
@ 2003-12-08 23:42 ` zack at gcc dot gnu dot org
2003-12-29 18:06 ` [Bug c/12560] [3.4 Regression] Error recovery " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: zack at gcc dot gnu dot org @ 2003-12-08 23:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at gcc dot gnu dot org 2003-12-08 23:42 -------
Will address this as part of the c-decl.c overhaul I'm doing now.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |zack at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4 Regression] Error recovery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
` (3 preceding siblings ...)
2003-12-08 23:42 ` zack at gcc dot gnu dot org
@ 2003-12-29 18:06 ` pinskia at gcc dot gnu dot org
2004-01-25 2:52 ` [Bug c/12560] [3.4/3.5 " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-29 18:06 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4/3.5 Regression] Error recovery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
` (4 preceding siblings ...)
2003-12-29 18:06 ` [Bug c/12560] [3.4 Regression] Error recovery " pinskia at gcc dot gnu dot org
@ 2004-01-25 2:52 ` pinskia at gcc dot gnu dot org
2004-01-25 23:14 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-25 2:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-25 02:52 -------
The problem is that this point current_function_decl is not NULL but
current_function_scope is NULL.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4/3.5 Regression] Error recovery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
` (5 preceding siblings ...)
2004-01-25 2:52 ` [Bug c/12560] [3.4/3.5 " pinskia at gcc dot gnu dot org
@ 2004-01-25 23:14 ` pinskia at gcc dot gnu dot org
2004-03-09 10:29 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-25 23:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-25 23:14 -------
I have also seen this when you leave out the closing crucly brace for a function.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4/3.5 Regression] Error recovery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
` (6 preceding siblings ...)
2004-01-25 23:14 ` pinskia at gcc dot gnu dot org
@ 2004-03-09 10:29 ` mmitchel at gcc dot gnu dot org
2004-03-16 20:57 ` zack at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-09 10:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-09 10:29 -------
As this is just an ICE after a valid error message, we can postpone this until
3.4.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.0 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4/3.5 Regression] Error recovery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
` (7 preceding siblings ...)
2004-03-09 10:29 ` mmitchel at gcc dot gnu dot org
@ 2004-03-16 20:57 ` zack at gcc dot gnu dot org
2004-03-23 23:53 ` [Bug c/12560] [3.4 " zack at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-03-16 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at gcc dot gnu dot org 2004-03-16 20:57 -------
Fixed by the c-decl.c rewrite:
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg01280.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4 Regression] Error recovery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
` (8 preceding siblings ...)
2004-03-16 20:57 ` zack at gcc dot gnu dot org
@ 2004-03-23 23:53 ` zack at gcc dot gnu dot org
2004-05-05 18:48 ` falk at debian dot org
2004-05-05 18:51 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-03-23 23:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at gcc dot gnu dot org 2004-03-23 23:52 -------
fixed in 3.5
--
What |Removed |Added
----------------------------------------------------------------------------
Known to work|3.3 |3.3 3.5.0
Summary|[3.4/3.5 Regression] Error |[3.4 Regression] Error
|recovery problem with enum |recovery problem with enum
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4 Regression] Error recovery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
` (9 preceding siblings ...)
2004-03-23 23:53 ` [Bug c/12560] [3.4 " zack at gcc dot gnu dot org
@ 2004-05-05 18:48 ` falk at debian dot org
2004-05-05 18:51 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: falk at debian dot org @ 2004-05-05 18:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From falk at debian dot org 2004-05-05 18:48 -------
As Zack says, it's fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12560] [3.4 Regression] Error recovery problem with enum
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
` (10 preceding siblings ...)
2004-05-05 18:48 ` falk at debian dot org
@ 2004-05-05 18:51 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-05 18:51 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.1 |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12560
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2004-05-05 18:51 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-09 22:33 [Bug c/12560] New: [tree-ssa] Error revocery problem with enum falk at debian dot org
2003-10-09 23:11 ` [Bug c/12560] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-10-26 23:07 ` pinskia at gcc dot gnu dot org
2003-12-08 23:28 ` reichelt at gcc dot gnu dot org
2003-12-08 23:42 ` zack at gcc dot gnu dot org
2003-12-29 18:06 ` [Bug c/12560] [3.4 Regression] Error recovery " pinskia at gcc dot gnu dot org
2004-01-25 2:52 ` [Bug c/12560] [3.4/3.5 " pinskia at gcc dot gnu dot org
2004-01-25 23:14 ` pinskia at gcc dot gnu dot org
2004-03-09 10:29 ` mmitchel at gcc dot gnu dot org
2004-03-16 20:57 ` zack at gcc dot gnu dot org
2004-03-23 23:53 ` [Bug c/12560] [3.4 " zack at gcc dot gnu dot org
2004-05-05 18:48 ` falk at debian dot org
2004-05-05 18:51 ` pinskia 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).