public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename
@ 2006-09-10 10:07 reichelt at gcc dot gnu dot org
2006-09-10 10:07 ` [Bug c++/28999] " reichelt at gcc dot gnu dot org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-09-10 10:07 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE since GCC 3.4.0:
======================================
namespace N
{
template<int> void foo();
}
template<int> struct A
{
friend void typename N::foo<0>();
};
======================================
bug.cc:8: internal compiler error: in make_typename_type, at cp/decl.c:2818
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1/4.2 regression] ICE on invalid use of typename
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0/4.1/4.2 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
@ 2006-09-10 10:07 ` reichelt at gcc dot gnu dot org
2006-09-10 13:50 ` steven at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-09-10 10:07 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0/4.1/4.2 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
2006-09-10 10:07 ` [Bug c++/28999] " reichelt at gcc dot gnu dot org
@ 2006-09-10 13:50 ` steven at gcc dot gnu dot org
2006-09-10 13:50 ` steven at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2006-09-10 13:50 UTC (permalink / raw)
To: gcc-bugs
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|2006-09-10 13:50:31 |2006-09-10 13:50:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0/4.1/4.2 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
2006-09-10 10:07 ` [Bug c++/28999] " reichelt at gcc dot gnu dot org
2006-09-10 13:50 ` steven at gcc dot gnu dot org
@ 2006-09-10 13:50 ` steven at gcc dot gnu dot org
2006-09-10 14:38 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2006-09-10 13:50 UTC (permalink / raw)
To: gcc-bugs
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Last reconfirmed|0000-00-00 00:00:00 |2006-09-10 13:50:31
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0/4.1/4.2 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-09-10 13:50 ` steven at gcc dot gnu dot org
@ 2006-09-10 14:38 ` pinskia at gcc dot gnu dot org
2006-09-10 22:32 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-10 14:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-10 14:38 -------
3.2.3 gave:
t.cc:8: syntax error before `<' token
Which is just as helpful as the ICE anyways.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0/4.1/4.2 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-09-10 14:38 ` pinskia at gcc dot gnu dot org
@ 2006-09-10 22:32 ` mmitchel at gcc dot gnu dot org
2006-09-10 22:40 ` steven at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-09-10 22:32 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0/4.1/4.2 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-09-10 22:32 ` mmitchel at gcc dot gnu dot org
@ 2006-09-10 22:40 ` steven at gcc dot gnu dot org
2007-01-09 3:42 ` [Bug c++/28999] [4.0/4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2006-09-10 22:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from steven at gcc dot gnu dot org 2006-09-10 22:40 -------
Why is this ice-on-invalid-code a P2 bug?!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0/4.1/4.2/4.3 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-09-10 22:40 ` steven at gcc dot gnu dot org
@ 2007-01-09 3:42 ` mmitchel at gcc dot gnu dot org
2007-01-11 3:25 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-01-09 3:42 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
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=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0/4.1/4.2/4.3 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-01-09 3:42 ` [Bug c++/28999] [4.0/4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
@ 2007-01-11 3:25 ` mmitchel at gcc dot gnu dot org
2007-01-11 3:36 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-01-11 3:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mmitchel at gcc dot gnu dot org 2007-01-11 03:24 -------
Subject: Bug 28999
Author: mmitchel
Date: Thu Jan 11 03:24:33 2007
New Revision: 120663
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120663
Log:
PR c++/28999
* decl.c (make_typename_type): If the qualified name is not a
type, issue an error.
* parser.c (cp_parser_elaborated_type_specifier): Fix comment
formatting.
Added:
trunk/gcc/testsuite/g++.dg/template/typename11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0/4.1/4.2/4.3 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2007-01-11 3:25 ` mmitchel at gcc dot gnu dot org
@ 2007-01-11 3:36 ` mmitchel at gcc dot gnu dot org
2007-01-11 5:41 ` [Bug c++/28999] [4.0 " mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-01-11 3:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2007-01-11 03:36 -------
Subject: Bug 28999
Author: mmitchel
Date: Thu Jan 11 03:36:02 2007
New Revision: 120664
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120664
Log:
PR c++/28999
* decl.c (make_typename_type): If the qualified name is not a
type, issue an error.
* parser.c (cp_parser_elaborated_type_specifier): Fix comment
formatting.
PR c++/28999
* g++.dg/template/typename11.C: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/typename11.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/decl.c
branches/gcc-4_2-branch/gcc/cp/parser.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2007-01-11 3:36 ` mmitchel at gcc dot gnu dot org
@ 2007-01-11 5:41 ` mmitchel at gcc dot gnu dot org
2007-01-11 5:41 ` [Bug c++/28999] [4.0/4.1 " mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-01-11 5:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from mmitchel at gcc dot gnu dot org 2007-01-11 05:41 -------
Fixed in 4.1.2.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
Summary|[4.0/4.1 regression] ICE on |[4.0 regression] ICE on
|invalid use of typename |invalid use of typename
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0/4.1 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2007-01-11 5:41 ` [Bug c++/28999] [4.0 " mmitchel at gcc dot gnu dot org
@ 2007-01-11 5:41 ` mmitchel at gcc dot gnu dot org
2007-02-03 19:46 ` [Bug c++/28999] [4.0 " gdr at gcc dot gnu dot org
2007-02-03 20:02 ` gdr at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-01-11 5:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mmitchel at gcc dot gnu dot org 2007-01-11 05:40 -------
Subject: Bug 28999
Author: mmitchel
Date: Thu Jan 11 05:40:35 2007
New Revision: 120665
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120665
Log:
PR c++/28999
* decl.c (make_typename_type): If the qualified name is not a
type, issue an error.
* parser.c (cp_parser_elaborated_type_specifier): Fix comment
formatting.
PR c++/28999
* g++.dg/template/typename11.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/typename11.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2007-01-11 5:41 ` [Bug c++/28999] [4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2007-02-03 19:46 ` gdr at gcc dot gnu dot org
2007-02-03 20:02 ` gdr at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 19:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from gdr at gcc dot gnu dot org 2007-02-03 19:46 -------
Fixed in GCC-4.1.2
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/28999] [4.0 regression] ICE on invalid use of typename
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
` (11 preceding siblings ...)
2007-02-03 19:46 ` [Bug c++/28999] [4.0 " gdr at gcc dot gnu dot org
@ 2007-02-03 20:02 ` gdr at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 20:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from gdr at gcc dot gnu dot org 2007-02-03 20:02 -------
Fixed in GCC-4.1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28999
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-02-03 20:02 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-10 10:07 [Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename reichelt at gcc dot gnu dot org
2006-09-10 10:07 ` [Bug c++/28999] " reichelt at gcc dot gnu dot org
2006-09-10 13:50 ` steven at gcc dot gnu dot org
2006-09-10 13:50 ` steven at gcc dot gnu dot org
2006-09-10 14:38 ` pinskia at gcc dot gnu dot org
2006-09-10 22:32 ` mmitchel at gcc dot gnu dot org
2006-09-10 22:40 ` steven at gcc dot gnu dot org
2007-01-09 3:42 ` [Bug c++/28999] [4.0/4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
2007-01-11 3:25 ` mmitchel at gcc dot gnu dot org
2007-01-11 3:36 ` mmitchel at gcc dot gnu dot org
2007-01-11 5:41 ` [Bug c++/28999] [4.0 " mmitchel at gcc dot gnu dot org
2007-01-11 5:41 ` [Bug c++/28999] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2007-02-03 19:46 ` [Bug c++/28999] [4.0 " gdr at gcc dot gnu dot org
2007-02-03 20:02 ` gdr 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).