public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
@ 2004-07-26 14:59 bangerth at dealii dot org
2004-07-26 15:00 ` [Bug c++/16716] " bangerth at dealii dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2004-07-26 14:59 UTC (permalink / raw)
To: gcc-bugs
Take this (invalid, the "typename" shouldn't be there) piece of code:
-------------------
template <typename> class allocator;
template<typename T> class vector {
typedef typename allocator<T> allocator_type;
};
------------------
g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ -c x.cc
x.cc:4: syntax error before `;' token
g/x> /home/bangerth/bin/gcc-3.3*/bin/c++ -c x.cc
x.cc:4: error: parse error before `;' token
g/x> /home/bangerth/bin/gcc-3.4*/bin/c++ -c x.cc
x.cc:4: error: expected nested-name-specifier
x.cc:4: error: `allocator<T>' specified as declarator-id
x.cc:4: error: two or more data types in declaration of `allocator<T>'
x.cc:4: error: expected `;' before "allocator_type"
g/x> /home/bangerth/bin/gcc-3.5*/bin/c++ -c x.cc
x.cc:4: error: expected nested-name-specifier
x.cc:4: internal compiler error: in
cp_parser_parse_and_diagnose_invalid_type_name, at cp/parser.c:2268
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
That's a regression.
W.
--
Summary: [3.5 regression] ICE in
cp_parser_parse_and_diagnose_invalid_type_name
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16716
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/16716] [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
2004-07-26 14:59 [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name bangerth at dealii dot org
@ 2004-07-26 15:00 ` bangerth at dealii dot org
2004-07-26 15:08 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2004-07-26 15:00 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16716
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/16716] [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
2004-07-26 14:59 [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name bangerth at dealii dot org
2004-07-26 15:00 ` [Bug c++/16716] " bangerth at dealii dot org
@ 2004-07-26 15:08 ` pinskia at gcc dot gnu dot org
2004-09-09 4:38 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-26 15:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-26 15:08 -------
: Search converges between 2004-02-01-trunk (#445) and 2004-03-01-trunk (#446).
Most likely the same as PR 14667.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |giovannibajo at libero dot
| |it
BugsThisDependsOn| |14667
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-07-26 15:08:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16716
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/16716] [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
2004-07-26 14:59 [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name bangerth at dealii dot org
2004-07-26 15:00 ` [Bug c++/16716] " bangerth at dealii dot org
2004-07-26 15:08 ` pinskia at gcc dot gnu dot org
@ 2004-09-09 4:38 ` mmitchel at gcc dot gnu dot org
2004-09-14 0:29 ` [Bug c++/16716] [4.0 " cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-09-09 4:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-09-09 04:38 -------
Mine
--
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=16716
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/16716] [4.0 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
2004-07-26 14:59 [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name bangerth at dealii dot org
` (2 preceding siblings ...)
2004-09-09 4:38 ` mmitchel at gcc dot gnu dot org
@ 2004-09-14 0:29 ` cvs-commit at gcc dot gnu dot org
2004-09-14 0:33 ` mmitchel 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-09-14 0:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-14 00:29 -------
Subject: Bug 16716
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-09-14 00:29:04
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog parser.c pt.c
Added files:
gcc/testsuite/g++.dg/parse: crash17.C
gcc/testsuite/g++.dg/template: enum3.C
Log message:
PR c++/16716
* parser.c (cp_parser_parse_and_diagnose_invalid_type_name):
Robustify.
PR c++/17327
* pt.c (unify): Add ENUMERAL_TYPE case. Replace sorry with
gcc_unreacable.
PR c++/16716
* g++.dg/parse/crash17.C: New test.
PR c++/17327
* g++.dg/template/enum3.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4279&r2=1.4280
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4348&r2=1.4349
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.245&r2=1.246
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.921&r2=1.922
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/crash17.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/enum3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16716
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/16716] [4.0 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
2004-07-26 14:59 [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name bangerth at dealii dot org
` (3 preceding siblings ...)
2004-09-14 0:29 ` [Bug c++/16716] [4.0 " cvs-commit at gcc dot gnu dot org
@ 2004-09-14 0:33 ` mmitchel at gcc dot gnu dot org
2004-09-14 20:10 ` reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-09-14 0:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-09-14 00:33 -------
Fixed in GCC 4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16716
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/16716] [4.0 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
2004-07-26 14:59 [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name bangerth at dealii dot org
` (4 preceding siblings ...)
2004-09-14 0:33 ` mmitchel at gcc dot gnu dot org
@ 2004-09-14 20:10 ` reichelt at gcc dot gnu dot org
2004-09-14 20:18 ` reichelt at gcc dot gnu dot org
2004-10-15 21:16 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-14 20:10 UTC (permalink / raw)
To: gcc-bugs
--
Bug 16716 depends on bug 14667, which changed state.
Bug 14667 Summary: [4.0 Regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14667
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16716
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/16716] [4.0 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
2004-07-26 14:59 [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name bangerth at dealii dot org
` (5 preceding siblings ...)
2004-09-14 20:10 ` reichelt at gcc dot gnu dot org
@ 2004-09-14 20:18 ` reichelt at gcc dot gnu dot org
2004-10-15 21:16 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-14 20:18 UTC (permalink / raw)
To: gcc-bugs
--
Bug 16716 depends on bug 14667, which changed state.
Bug 14667 Summary: [4.0 Regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14667
What |Old Value |New Value
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16716
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/16716] [4.0 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
2004-07-26 14:59 [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name bangerth at dealii dot org
` (6 preceding siblings ...)
2004-09-14 20:18 ` reichelt at gcc dot gnu dot org
@ 2004-10-15 21:16 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-10-15 21:16 UTC (permalink / raw)
To: gcc-bugs
--
Bug 16716 depends on bug 14667, which changed state.
Bug 14667 Summary: [4.0 Regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14667
What |Old Value |New Value
----------------------------------------------------------------------------
Status|REOPENED |NEW
Status|NEW |ASSIGNED
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16716
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-10-15 21:16 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-26 14:59 [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name bangerth at dealii dot org
2004-07-26 15:00 ` [Bug c++/16716] " bangerth at dealii dot org
2004-07-26 15:08 ` pinskia at gcc dot gnu dot org
2004-09-09 4:38 ` mmitchel at gcc dot gnu dot org
2004-09-14 0:29 ` [Bug c++/16716] [4.0 " cvs-commit at gcc dot gnu dot org
2004-09-14 0:33 ` mmitchel at gcc dot gnu dot org
2004-09-14 20:10 ` reichelt at gcc dot gnu dot org
2004-09-14 20:18 ` reichelt at gcc dot gnu dot org
2004-10-15 21:16 ` mmitchel 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).