public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15044] New: ICE on syntax error, template header.
@ 2004-04-21 14:11 duz at sol-3 dot de
2004-04-21 14:16 ` [Bug c++/15044] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: duz at sol-3 dot de @ 2004-04-21 14:11 UTC (permalink / raw)
To: gcc-bugs
ICE on syntax error as follows:
template class <num_t> class a { num_t n; }
Using gcc-3.4.0 bootstapped on Linux for i386,
cd /home/duz/cc/
gcc-3.4 -v -O -S tst.cc
Reading specs from /opt/gnu/gcc-3.4.0/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: /pub/unpacked/gcc-3.4.0/configure --prefix=/opt/gnu/gcc-3.4.0
--enable-languages=c,c++ --disable-shared --disable-nls --disable-multilib
--program-suffix=-3.4
Thread model: posix
gcc version 3.4.0
/opt/gnu/gcc-3.4.0/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -quiet -v
-D_GNU_SOURCE tst.cc -quiet -dumpbase tst.cc -mtune=pentiumpro -auxbase tst -O
-version -o tst.s
ignoring nonexistent directory
"/opt/gnu/gcc-3.4.0/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/gnu/gcc-3.4.0/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0
/opt/gnu/gcc-3.4.0/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/i686-pc-linux-gnu
/opt/gnu/gcc-3.4.0/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/backward
/usr/local/include
/opt/gnu/gcc-3.4.0/include
/opt/gnu/gcc-3.4.0/lib/gcc/i686-pc-linux-gnu/3.4.0/include
/usr/include
End of search list.
GNU C++ version 3.4.0 (i686-pc-linux-gnu)
compiled by GNU C version 3.4.0.
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64471
tst.cc:1: 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.
Compilation exited abnormally with code 1 at Wed Apr 21 15:54:06
--
Summary: ICE on syntax error, template header.
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: duz at sol-3 dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15044
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/15044] [3.4/3.5 Regression] ICE on syntax error, template header.
2004-04-21 14:11 [Bug c++/15044] New: ICE on syntax error, template header duz at sol-3 dot de
@ 2004-04-21 14:16 ` pinskia at gcc dot gnu dot org
2004-05-24 2:31 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-21 14:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-21 14:02 -------
Confirmed.
Here is the backtrace for the mainline:
1891 if (TYPE_P (type))
(gdb) bt
#0 cp_parser_check_for_invalid_template_id (parser=0x40129880, type=0x0) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/cp/parser.c:1891
#1 0x080ea524 in cp_parser_type_specifier (parser=0x40129880, flags=Variable "flags" is not
available.
) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:12099
#2 0x080eb4ce in cp_parser_decl_specifier_seq (parser=0x40129880,
flags=CP_PARSER_FLAGS_OPTIONAL, attributes=0xbffebbb4,
declares_class_or_enum=0xbffebbb8) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:
6796
#3 0x080f2b5c in cp_parser_explicit_instantiation (parser=0x40129880) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/cp/parser.c:8586
#4 0x080f2e47 in cp_parser_declaration (parser=0x40129880) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/cp/parser.c:6385
#5 0x080f3020 in cp_parser_declaration_seq_opt (parser=0x40127cc8) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/cp/parser.c:6300
#6 0x080f320e in c_parse_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:2393
#7 0x0818194b in c_common_parse_file (set_yydebug=0) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/c-opts.c:1238
#8 0x083bf491 in toplev_main (argc=1074953416, argv=0x84be8a0) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/toplev.c:1595
#9 0x0818556e in main (argc=1074953416, argv=0x40127cc8) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/main.c:35
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Known to fail| |3.4.0 3.5.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2004-04-21 14:02:15
date| |
Summary|ICE on syntax error, |[3.4/3.5 Regression] ICE on
|template header. |syntax error, template
| |header.
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15044
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/15044] [3.4/3.5 Regression] ICE on syntax error, template header.
2004-04-21 14:11 [Bug c++/15044] New: ICE on syntax error, template header duz at sol-3 dot de
2004-04-21 14:16 ` [Bug c++/15044] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-05-24 2:31 ` mmitchel at gcc dot gnu dot org
2004-05-25 0:42 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-05-24 2:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-05-23 23:01 -------
Working on a fix.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15044
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/15044] [3.4/3.5 Regression] ICE on syntax error, template header.
2004-04-21 14:11 [Bug c++/15044] New: ICE on syntax error, template header duz at sol-3 dot de
2004-04-21 14:16 ` [Bug c++/15044] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-05-24 2:31 ` mmitchel at gcc dot gnu dot org
@ 2004-05-25 0:42 ` cvs-commit at gcc dot gnu dot org
2004-05-25 0:48 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-25 0:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-05-24 02:23 -------
Subject: Bug 15044
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2004-05-24 02:22:19
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog parser.c typeck.c
Added files:
gcc/testsuite/g++.dg/ext: attrib14.C
gcc/testsuite/g++.dg/template: error12.C ptrmem9.C
Log message:
PR c++/15044
* parser.c (cp_parser_class_head): Robustify.
PR c++/15317
* parser.c (cp_parser_decl_specifier_seq): Correct error in
comment.
(cp_parser_constructor_declarator_p): Treat attributes
as decl-specifiers.
PR c++/15329
* typeck.c (build_unary_op): Do not attempt to resolve casts to
base classes in templates.
PR c++/15044
* g++.dg/template/error12.C: New test.
PR c++/15317
* g++.dg/ext/attrib14.C: New test.
PR c++/15329
* g++.dg/template/ptrmem9.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.182&r2=1.3389.2.183
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.105&r2=1.3892.2.106
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.157.2.27&r2=1.157.2.28
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.519.2.15&r2=1.519.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/attrib14.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.2.16.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/error12.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ptrmem9.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15044
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/15044] [3.4/3.5 Regression] ICE on syntax error, template header.
2004-04-21 14:11 [Bug c++/15044] New: ICE on syntax error, template header duz at sol-3 dot de
` (2 preceding siblings ...)
2004-05-25 0:42 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-25 0:48 ` cvs-commit at gcc dot gnu dot org
2004-05-25 0:55 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-25 0:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-05-24 02:30 -------
Subject: Bug 15044
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2004-05-24 02:30:28
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/ext: attrib15.C
Log message:
PR c++/15044
* parser.c (cp_parser_class_head): Robustify.
PR c++/15317
* parser.c (cp_parser_decl_specifier_seq): Correct error in
comment.
(cp_parser_constructor_declarator_p): Treat attributes
as decl-specifiers.
PR c++/15329
* typeck.c (build_unary_op): Do not attempt to resolve casts to
base classes in templates.
PR c++/15044
* g++.dg/template/error12.C: New test.
PR c++/15317
* g++.dg/ext/attrib15.C: New test.
PR c++/15329
* g++.dg/template/ptrmem9.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.183&r2=1.3389.2.184
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/attrib15.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15044
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/15044] [3.4/3.5 Regression] ICE on syntax error, template header.
2004-04-21 14:11 [Bug c++/15044] New: ICE on syntax error, template header duz at sol-3 dot de
` (3 preceding siblings ...)
2004-05-25 0:48 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-25 0:55 ` cvs-commit at gcc dot gnu dot org
2004-05-25 1:01 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-25 0:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-05-24 02:29 -------
Subject: Bug 15044
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-05-24 02:29:35
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog parser.c typeck.c
Added files:
gcc/testsuite/g++.dg/ext: attrib15.C
gcc/testsuite/g++.dg/template: error12.C ptrmem9.C
Log message:
PR c++/15044
* parser.c (cp_parser_class_head): Robustify.
PR c++/15317
* parser.c (cp_parser_decl_specifier_seq): Correct error in
comment.
(cp_parser_constructor_declarator_p): Treat attributes
as decl-specifiers.
PR c++/15329
* typeck.c (build_unary_op): Do not attempt to resolve casts to
base classes in templates.
PR c++/15044
* g++.dg/template/error12.C: New test.
PR c++/15317
* g++.dg/ext/attrib15.C: New test.
PR c++/15329
* g++.dg/template/ptrmem9.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3777&r2=1.3778
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4056&r2=1.4057
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.194&r2=1.195
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&r1=1.543&r2=1.544
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/attrib15.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/error12.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ptrmem9.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15044
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/15044] [3.4/3.5 Regression] ICE on syntax error, template header.
2004-04-21 14:11 [Bug c++/15044] New: ICE on syntax error, template header duz at sol-3 dot de
` (4 preceding siblings ...)
2004-05-25 0:55 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-25 1:01 ` mmitchel at gcc dot gnu dot org
2004-06-22 15:20 ` reichelt at gcc dot gnu dot org
2004-06-28 13:53 ` bangerth at dealii dot org
7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-05-25 1:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-05-24 02:34 -------
Fixed in GCC 3.4.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15044
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/15044] [3.4/3.5 Regression] ICE on syntax error, template header.
2004-04-21 14:11 [Bug c++/15044] New: ICE on syntax error, template header duz at sol-3 dot de
` (5 preceding siblings ...)
2004-05-25 1:01 ` mmitchel at gcc dot gnu dot org
@ 2004-06-22 15:20 ` reichelt at gcc dot gnu dot org
2004-06-28 13:53 ` bangerth at dealii dot org
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-06-22 15:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-06-22 15:20 -------
*** Bug 16133 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |switch at cs dot tu-berlin
| |dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15044
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/15044] [3.4/3.5 Regression] ICE on syntax error, template header.
2004-04-21 14:11 [Bug c++/15044] New: ICE on syntax error, template header duz at sol-3 dot de
` (6 preceding siblings ...)
2004-06-22 15:20 ` reichelt at gcc dot gnu dot org
@ 2004-06-28 13:53 ` bangerth at dealii dot org
7 siblings, 0 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2004-06-28 13:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-06-28 13:43 -------
*** Bug 16244 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |giles at spacepigs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15044
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-06-28 13:43 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-21 14:11 [Bug c++/15044] New: ICE on syntax error, template header duz at sol-3 dot de
2004-04-21 14:16 ` [Bug c++/15044] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-05-24 2:31 ` mmitchel at gcc dot gnu dot org
2004-05-25 0:42 ` cvs-commit at gcc dot gnu dot org
2004-05-25 0:48 ` cvs-commit at gcc dot gnu dot org
2004-05-25 0:55 ` cvs-commit at gcc dot gnu dot org
2004-05-25 1:01 ` mmitchel at gcc dot gnu dot org
2004-06-22 15:20 ` reichelt at gcc dot gnu dot org
2004-06-28 13:53 ` bangerth at dealii 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).