public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter
@ 2006-05-04 15:32 reichelt at gcc dot gnu dot org
2006-05-04 15:34 ` [Bug c++/27425] " pinskia at gcc dot gnu dot org
` (16 more replies)
0 siblings, 17 replies; 18+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-04 15:32 UTC (permalink / raw)
To: gcc-bugs
The C++ frontend ICEs on the following invalid code snippet since GCC 3.4.0:
==================================================
template<int> struct A
{
template<template<void> class> struct B {};
template<void> struct C;
B<C> b;
};
A<0> a;
==================================================
bugB.cc:3: error: 'void' is not a valid type for a template constant parameter
bugB.cc:4: error: 'void' is not a valid type for a template constant parameter
bugB.cc: In instantiation of 'A<0>':
bugB.cc:8: instantiated from here
bugB.cc:3: error: 'void' is not a valid type for a template constant parameter
bugB.cc:4: error: 'void' is not a valid type for a template constant parameter
bugB.cc:4: error: 'void' is not a valid type for a template constant parameter
bugB.cc:5: internal compiler error: in coerce_template_parms, at cp/pt.c:4042
Please submit a full bug report, [etc.]
With GCC 3.3.3 - 3.3.6 we got sensible error messages.
Before GCC 3.3.3 the compiler entered an infinite loop.
--
Summary: [4.0/4.1/4.2 regression] ICE with invalid template-
template-parameter
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, 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=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
@ 2006-05-04 15:34 ` pinskia at gcc dot gnu dot org
2006-05-05 15:44 ` pinskia at gcc dot gnu dot org
` (15 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-04 15:34 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
2006-05-04 15:34 ` [Bug c++/27425] " pinskia at gcc dot gnu dot org
@ 2006-05-05 15:44 ` pinskia at gcc dot gnu dot org
2006-06-04 18:47 ` mmitchel at gcc dot gnu dot org
` (14 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-05 15:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-05-05 15:44 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-05-05 15:44:32
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
2006-05-04 15:34 ` [Bug c++/27425] " pinskia at gcc dot gnu dot org
2006-05-05 15:44 ` pinskia at gcc dot gnu dot org
@ 2006-06-04 18:47 ` mmitchel at gcc dot gnu dot org
2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
` (13 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-06-04 18:47 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=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-06-04 18:47 ` mmitchel at gcc dot gnu dot org
@ 2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
2007-02-03 16:55 ` [Bug c++/27425] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
` (12 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17 3:22 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.0/4.1/4.2/4.3 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
@ 2007-02-03 16:55 ` gdr at gcc dot gnu dot org
2007-02-03 20:29 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 16:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from gdr at gcc dot gnu dot org 2007-02-03 16:54 -------
Won't fix in GCC-4.0.x. Adjusting milestone.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.4 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.0/4.1/4.2/4.3 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-02-03 16:55 ` [Bug c++/27425] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
@ 2007-02-03 20:29 ` pinskia at gcc dot gnu dot org
2007-02-14 9:24 ` mmitchel at gcc dot gnu dot org
` (10 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-03 20:29 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.3 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.0/4.1/4.2/4.3 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-02-03 20:29 ` pinskia at gcc dot gnu dot org
@ 2007-02-14 9:24 ` mmitchel at gcc dot gnu dot org
2008-07-04 21:22 ` [Bug c++/27425] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
` (9 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:24 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.2 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.2/4.3/4.4 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-02-14 9:24 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 21:22 ` jsm28 at gcc dot gnu dot org
2009-03-31 19:36 ` [Bug c++/27425] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
` (8 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 21:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jsm28 at gcc dot gnu dot org 2008-07-04 21:21 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2/4.3/4.4 regression]|[4.2/4.3/4.4 regression] ICE
|ICE with invalid template- |with invalid template-
|template-parameter |template-parameter
Target Milestone|4.1.3 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.3/4.4/4.5 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2008-07-04 21:22 ` [Bug c++/27425] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2009-03-31 19:36 ` jsm28 at gcc dot gnu dot org
2009-08-04 12:34 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 19:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jsm28 at gcc dot gnu dot org 2009-03-31 19:36 -------
Closing 4.2 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.2/4.3/4.4/4.5 regression]|[4.3/4.4/4.5 regression] ICE
|ICE with invalid template- |with invalid template-
|template-parameter |template-parameter
Target Milestone|4.2.5 |4.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.3/4.4/4.5 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2009-03-31 19:36 ` [Bug c++/27425] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
@ 2009-08-04 12:34 ` rguenth at gcc dot gnu dot org
2009-11-13 16:57 ` jason at gcc dot gnu dot org
` (6 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2009-08-04 12:27 -------
GCC 4.3.4 is being released, adjusting target milestone.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.3.4 |4.3.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.3/4.4/4.5 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2009-08-04 12:34 ` rguenth at gcc dot gnu dot org
@ 2009-11-13 16:57 ` jason at gcc dot gnu dot org
2009-11-13 17:46 ` paolo dot carlini at oracle dot com
` (5 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-13 16:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jason at gcc dot gnu dot org 2009-11-13 16:56 -------
No longer ICEs in 4.3+.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.3/4.4/4.5 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2009-11-13 16:57 ` jason at gcc dot gnu dot org
@ 2009-11-13 17:46 ` paolo dot carlini at oracle dot com
2009-11-13 17:52 ` jason at gcc dot gnu dot org
` (4 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-11-13 17:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from paolo dot carlini at oracle dot com 2009-11-13 17:45 -------
Jason, see Comment #3, it still ICEs for me...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.3/4.4/4.5 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (11 preceding siblings ...)
2009-11-13 17:46 ` paolo dot carlini at oracle dot com
@ 2009-11-13 17:52 ` jason at gcc dot gnu dot org
2009-11-13 18:47 ` jason at gcc dot gnu dot org
` (3 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-13 17:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jason at gcc dot gnu dot org 2009-11-13 17:52 -------
Oops.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.3/4.4/4.5 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (13 preceding siblings ...)
2009-11-13 18:47 ` jason at gcc dot gnu dot org
@ 2009-11-13 18:47 ` jason at gcc dot gnu dot org
2009-12-11 5:27 ` jason at gcc dot gnu dot org
2009-12-15 16:15 ` reichelt at gcc dot gnu dot org
16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-13 18:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jason at gcc dot gnu dot org 2009-11-13 18:47 -------
Fixed for 4.5.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
Target Milestone|4.3.5 |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.3/4.4/4.5 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (12 preceding siblings ...)
2009-11-13 17:52 ` jason at gcc dot gnu dot org
@ 2009-11-13 18:47 ` jason at gcc dot gnu dot org
2009-11-13 18:47 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-13 18:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jason at gcc dot gnu dot org 2009-11-13 18:47 -------
Subject: Bug 27425
Author: jason
Date: Fri Nov 13 18:46:47 2009
New Revision: 154164
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154164
Log:
PR c++/27425
PR c++/34274
* pt.c (expand_template_argument_pack): Handle null arg gracefully.
(convert_template_argument): Use %T for type.
Added:
trunk/gcc/testsuite/g++.dg/template/arg7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.3/4.4/4.5 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (14 preceding siblings ...)
2009-11-13 18:47 ` jason at gcc dot gnu dot org
@ 2009-12-11 5:27 ` jason at gcc dot gnu dot org
2009-12-15 16:15 ` reichelt at gcc dot gnu dot org
16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-11 5:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from jason at gcc dot gnu dot org 2009-12-11 05:27 -------
Subject: Bug 27425
Author: jason
Date: Fri Dec 11 05:26:51 2009
New Revision: 155149
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155149
Log:
PR c++/27425
PR c++/34274
PR c++/42301
* pt.c (expand_template_argument_pack): Handle null arg gracefully.
(convert_template_argument): Use %T for type.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/arg7.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/pt.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/27425] [4.3/4.4/4.5 regression] ICE with invalid template-template-parameter
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
` (15 preceding siblings ...)
2009-12-11 5:27 ` jason at gcc dot gnu dot org
@ 2009-12-15 16:15 ` reichelt at gcc dot gnu dot org
16 siblings, 0 replies; 18+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-12-15 16:15 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.0 |4.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27425
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2009-12-15 16:15 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-04 15:32 [Bug c++/27425] New: [4.0/4.1/4.2 regression] ICE with invalid template-template-parameter reichelt at gcc dot gnu dot org
2006-05-04 15:34 ` [Bug c++/27425] " pinskia at gcc dot gnu dot org
2006-05-05 15:44 ` pinskia at gcc dot gnu dot org
2006-06-04 18:47 ` mmitchel at gcc dot gnu dot org
2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
2007-02-03 16:55 ` [Bug c++/27425] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
2007-02-03 20:29 ` pinskia at gcc dot gnu dot org
2007-02-14 9:24 ` mmitchel at gcc dot gnu dot org
2008-07-04 21:22 ` [Bug c++/27425] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-03-31 19:36 ` [Bug c++/27425] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:34 ` rguenth at gcc dot gnu dot org
2009-11-13 16:57 ` jason at gcc dot gnu dot org
2009-11-13 17:46 ` paolo dot carlini at oracle dot com
2009-11-13 17:52 ` jason at gcc dot gnu dot org
2009-11-13 18:47 ` jason at gcc dot gnu dot org
2009-11-13 18:47 ` jason at gcc dot gnu dot org
2009-12-11 5:27 ` jason at gcc dot gnu dot org
2009-12-15 16:15 ` reichelt 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).