public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11944] New: Error recovery problem with undeclared array bounds
@ 2003-08-16 9:03 falk at debian dot org
2003-08-16 13:00 ` [Bug c/11944] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: falk at debian dot org @ 2003-08-16 9:03 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=11944
Summary: Error recovery problem with undeclared array bounds
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: 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 test.c
void f(int const[foo]);
falk@juist:/tmp% gcc -v -c -O3 test.c
Reading specs from
/usr/local/stow/gcc-2003.08.08/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.4/specs
Configured with: ../configure --disable-nls --enable-languages=c :
(reconfigured) ../configure --disable-nls --enable-languages=c++
Thread model: posix
gcc version 3.4 20030808 (experimental)
/usr/local/stow/gcc-2003.08.08/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.4/cc1 -quiet -v -iprefix /usr/local/stow/gcc-2003.08.08/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.4/ test.c -quiet -dumpbase test.c -mcpu=ev67 -auxbase test -O3 -version -o /tmp/ccqADKby.s
ignoring nonexistent directory
"/usr/local/stow/gcc-2003.08.08/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.4/../../../../alphaev68-unknown-linux-gnu/include"
ignoring nonexistent directory "NONE/include"
ignoring duplicate directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.4/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.4/../../../../alphaev68-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/stow/gcc-2003.08.08/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.4/include
/usr/local/include
/usr/include
End of search list.
GNU C version 3.4 20030808 (experimental) (alphaev68-unknown-linux-gnu)
compiled by GNU C version 3.4 20030808 (experimental).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64064
test.c:1: error: `foo' undeclared here (not in a function)
test.c:1: internal compiler error: tree check: expected class 't', have 'x'
(error_mark) in get_qualified_type, at tree.c:2850
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] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
@ 2003-08-16 13:00 ` pinskia at gcc dot gnu dot org
2003-08-16 13:02 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-16 13:00 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=11944
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
GCC build triplet|alphaev68-unknown-linux-gnu |
GCC host triplet|alphaev68-unknown-linux-gnu |
GCC target triplet|alphaev68-unknown-linux-gnu |
Keywords| |ice-on-invalid-code
Summary|Error recovery problem with |[3.3/3.4 Regression] Error
|undeclared array bounds |recovery problem with
| |undeclared array bounds
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-16 13:00 -------
I can confirm it on the mainline (20030815).
>From Phil's regression hunter: Search converges between 2001-06-03-trunk (#22) and 2001-06-
10-trunk (#23).
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
2003-08-16 13:00 ` [Bug c/11944] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-08-16 13:02 ` pinskia at gcc dot gnu dot org
2003-08-23 3:03 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-16 13:02 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=11944
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-08-16 13:02:16
date| |
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
2003-08-16 13:00 ` [Bug c/11944] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2003-08-16 13:02 ` pinskia at gcc dot gnu dot org
@ 2003-08-23 3:03 ` pinskia at gcc dot gnu dot org
2003-10-16 9:28 ` mmitchel at gcc dot gnu dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-23 3:03 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=11944
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |3.3.2
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (2 preceding siblings ...)
2003-08-23 3:03 ` pinskia at gcc dot gnu dot org
@ 2003-10-16 9:28 ` mmitchel at gcc dot gnu dot org
2003-10-19 22:25 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-10-16 9:28 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=11944
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.3.2 |3.3.3
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-10-16 09:28 -------
Postponed until GCC 3.3.3.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (3 preceding siblings ...)
2003-10-16 9:28 ` mmitchel at gcc dot gnu dot org
@ 2003-10-19 22:25 ` pinskia at gcc dot gnu dot org
2003-12-08 23:49 ` reichelt at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-19 22:25 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=11944
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.3.3 |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-19 22:18 -------
Postponing to 3.4 because this is an error recovery problem and most likely there will not
a 3.3.3 release.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (4 preceding siblings ...)
2003-10-19 22:25 ` pinskia at gcc dot gnu dot org
@ 2003-12-08 23:49 ` reichelt at gcc dot gnu dot org
2003-12-16 17:30 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-12-08 23:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-12-08 23:49 -------
Well, I dunno whether this is really a regression.
All release versions of the compiler do ICE :-(
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11944
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (5 preceding siblings ...)
2003-12-08 23:49 ` reichelt at gcc dot gnu dot org
@ 2003-12-16 17:30 ` mmitchel at gcc dot gnu dot org
2003-12-20 21:57 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-12-16 17:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-12-16 17:19 -------
According to Volker, this is not a regression, so I have removed the target
milestone.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11944
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (6 preceding siblings ...)
2003-12-16 17:30 ` mmitchel at gcc dot gnu dot org
@ 2003-12-20 21:57 ` pinskia at gcc dot gnu dot org
2003-12-23 12:06 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-20 21:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-20 20:23 -------
It is a regression but not of any released versions though, targeting 3.5.0 then.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11944
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (7 preceding siblings ...)
2003-12-20 21:57 ` pinskia at gcc dot gnu dot org
@ 2003-12-23 12:06 ` pinskia at gcc dot gnu dot org
2003-12-23 19:32 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23 12:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-23 10:50 -------
Here is the backtrace:
#0 0x000a12d0 in build_type_copy (type=0x40bba2c0) at /Volumes/UFS_Partition/
pinskia/src/fsf/gcc-clean/src/gcc/tree.c:2946
#1 0x000a124c in build_qualified_type (type=0x40bba2c0, type_quals=1) at /Volumes/
UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/tree.c:2925
#2 0x0003ffd0 in c_build_qualified_type (type=0x40bba2c0, type_quals=1) at /Volumes/
UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/c-common.c:2801
#3 0x0001c870 in grokdeclarator (declarator=0x0, declspecs=0x40d43228,
decl_context=PARM, initialized=0, width=0x0) at /Volumes/UFS_Partition/pinskia/src/fsf/
gcc-clean/src/gcc/c-decl.c:4332
#4 0x000195d8 in push_parm_decl (parm=0x40d432b8) at /Volumes/UFS_Partition/
pinskia/src/fsf/gcc-clean/src/gcc/c-decl.c:3026
#5 0x00008938 in yyparse () at c-parse.y:2457
#6 0x0000a2b0 in c_parse_file () at c-parse.y:3037
#7 0x0005aa20 in c_common_parse_file (set_yydebug=0) at /Volumes/UFS_Partition/
pinskia/src/fsf/gcc-clean/src/gcc/c-opts.c:1216
#8 0x000f0ec8 in compile_file () at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/
gcc/toplev.c:1804
#9 0x000f74f4 in do_compile () at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/
gcc/toplev.c:4594
#10 0x000f75d8 in toplev_main (argc=14, argv=0xbffffbc0) at /Volumes/UFS_Partition/
pinskia/src/fsf/gcc-clean/src/gcc/toplev.c:4634
#11 0x00089c14 in main (argc=14, argv=0xbffffbc0) at /Volumes/UFS_Partition/pinskia/
src/fsf/gcc-clean/src/gcc/main.c:35
The line it is dying on (m is NULL, type is error_mark_node):
2946 TYPE_NEXT_VARIANT (t) = TYPE_NEXT_VARIANT (m);
I have a fix I think that will fix this.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-12-05 03:57:09 |2003-12-23 10:50:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11944
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (8 preceding siblings ...)
2003-12-23 12:06 ` pinskia at gcc dot gnu dot org
@ 2003-12-23 19:32 ` pinskia at gcc dot gnu dot org
2003-12-23 20:50 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23 19:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-23 19:30 -------
I have a patch so take over.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11944
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (9 preceding siblings ...)
2003-12-23 19:32 ` pinskia at gcc dot gnu dot org
@ 2003-12-23 20:50 ` pinskia at gcc dot gnu dot org
2003-12-24 18:03 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23 20:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-23 19:32 -------
Easy enough fix for 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.5.0 |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11944
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (10 preceding siblings ...)
2003-12-23 20:50 ` pinskia at gcc dot gnu dot org
@ 2003-12-24 18:03 ` pinskia at gcc dot gnu dot org
2003-12-24 18:47 ` pinskia at gcc dot gnu dot org
2003-12-25 16:30 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-24 18:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-24 17:40 -------
My patch fixes it. will submit it soon.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-12-23 10:50:16 |2003-12-24 17:40:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11944
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (11 preceding siblings ...)
2003-12-24 18:03 ` pinskia at gcc dot gnu dot org
@ 2003-12-24 18:47 ` pinskia at gcc dot gnu dot org
2003-12-25 16:30 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-24 18:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-24 18:30 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02052.html>
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
Last reconfirmed|2003-12-24 17:40:59 |2003-12-24 18:30:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11944
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/11944] [3.3/3.4 Regression] Error recovery problem with undeclared array bounds
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
` (12 preceding siblings ...)
2003-12-24 18:47 ` pinskia at gcc dot gnu dot org
@ 2003-12-25 16:30 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-25 16:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-25 16:23 -------
Fixed for 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11944
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2003-12-25 16:23 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-16 9:03 [Bug c/11944] New: Error recovery problem with undeclared array bounds falk at debian dot org
2003-08-16 13:00 ` [Bug c/11944] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2003-08-16 13:02 ` pinskia at gcc dot gnu dot org
2003-08-23 3:03 ` pinskia at gcc dot gnu dot org
2003-10-16 9:28 ` mmitchel at gcc dot gnu dot org
2003-10-19 22:25 ` pinskia at gcc dot gnu dot org
2003-12-08 23:49 ` reichelt at gcc dot gnu dot org
2003-12-16 17:30 ` mmitchel at gcc dot gnu dot org
2003-12-20 21:57 ` pinskia at gcc dot gnu dot org
2003-12-23 12:06 ` pinskia at gcc dot gnu dot org
2003-12-23 19:32 ` pinskia at gcc dot gnu dot org
2003-12-23 20:50 ` pinskia at gcc dot gnu dot org
2003-12-24 18:03 ` pinskia at gcc dot gnu dot org
2003-12-24 18:47 ` pinskia at gcc dot gnu dot org
2003-12-25 16:30 ` 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).