* [Bug c++/13810] [3.4/3.5 Regression] ICE on default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
@ 2004-01-22 8:23 ` pinskia at gcc dot gnu dot org
2004-01-22 8:29 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-22 8:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-22 08:23 -------
I forgot the ICE:
pr13809.cc:40: internal compiler error: in cp_parser_lookup_name, at cp/parser.c:13417
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4/3.5 Regression] ICE on default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
2004-01-22 8:23 ` [Bug c++/13810] " pinskia at gcc dot gnu dot org
@ 2004-01-22 8:29 ` pinskia at gcc dot gnu dot org
2004-01-22 15:46 ` [Bug c++/13810] [3.4/3.5 Regression] ICE on invalid " bangerth at dealii dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-22 8:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-22 08:28 -------
Oh I thought about this a little and this is definitely invalid code.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4/3.5 Regression] ICE on invalid default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
2004-01-22 8:23 ` [Bug c++/13810] " pinskia at gcc dot gnu dot org
2004-01-22 8:29 ` pinskia at gcc dot gnu dot org
@ 2004-01-22 15:46 ` bangerth at dealii dot org
2004-01-22 21:31 ` reichelt at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2004-01-22 15:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-01-22 15:46 -------
Confirmed. The code is invalid:
----------------------
template<typename> struct S {};
template<typename A,
template <typename> class B = S<A> > struct X{};
----------------------
The default argument should of course be S, not S<A>.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-01-22 15:46:55
date| |
Summary|[3.4/3.5 Regression] ICE on |[3.4/3.5 Regression] ICE on
|default templates |invalid default templates
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4/3.5 Regression] ICE on invalid default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-01-22 15:46 ` [Bug c++/13810] [3.4/3.5 Regression] ICE on invalid " bangerth at dealii dot org
@ 2004-01-22 21:31 ` reichelt at gcc dot gnu dot org
2004-01-23 11:12 ` giovannibajo at libero dot it
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-01-22 21:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-01-22 21:30 -------
Here's an even shorter testcase:
====================================================
template<int> struct A {};
template<template<int> class = A<0> > struct B {};
====================================================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4/3.5 Regression] ICE on invalid default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-01-22 21:31 ` reichelt at gcc dot gnu dot org
@ 2004-01-23 11:12 ` giovannibajo at libero dot it
2004-01-23 12:21 ` giovannibajo at libero dot it
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-23 11:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-23 11:12 -------
Mine.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |giovannibajo at libero dot
|dot org |it
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4/3.5 Regression] ICE on invalid default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-01-23 11:12 ` giovannibajo at libero dot it
@ 2004-01-23 12:21 ` giovannibajo at libero dot it
2004-01-25 22:43 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-23 12:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-23 12:21 -------
Patch posted:
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg02429.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4/3.5 Regression] ICE on invalid default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-01-23 12:21 ` giovannibajo at libero dot it
@ 2004-01-25 22:43 ` cvs-commit at gcc dot gnu dot org
2004-01-25 22:46 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-25 22:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-25 22:43 -------
Subject: Bug 13810
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: giovannibajo@gcc.gnu.org 2004-01-25 22:43:09
Modified files:
gcc/cp : ChangeLog parser.c semantics.c
Log message:
PR c++/13810
* parser.c (cp_parser_type_parameter): When cp_parser_id_expression
returns a TYPE_DECL. no further lookup is required.
* semantics.c (check_template_template_default_arg): A TYPE_DECL
is invalid. Rework to give better diagnostics.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3907&r2=1.3908
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.160&r2=1.161
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.382&r2=1.383
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4/3.5 Regression] ICE on invalid default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-01-25 22:43 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-25 22:46 ` cvs-commit at gcc dot gnu dot org
2004-01-25 23:08 ` [Bug c++/13810] [3.4 " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-25 22:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-25 22:46 -------
Subject: Bug 13810
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: giovannibajo@gcc.gnu.org 2004-01-25 22:46:48
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: ttp7.C
Log message:
PR c++/13810
* g++.dg/template/ttp7.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3419&r2=1.3420
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ttp7.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4 Regression] ICE on invalid default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-01-25 22:46 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-25 23:08 ` pinskia at gcc dot gnu dot org
2004-01-26 0:56 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-25 23:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-25 23:08 -------
Fixed for 3.5. Now only a 3.4 regression.
--
What |Removed |Added
----------------------------------------------------------------------------
List of versions| |3.3 3.5.0
known to work| |
Summary|[3.4/3.5 Regression] ICE on |[3.4 Regression] ICE on
|invalid default templates |invalid default templates
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4 Regression] ICE on invalid default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-01-25 23:08 ` [Bug c++/13810] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-01-26 0:56 ` cvs-commit at gcc dot gnu dot org
2004-01-26 0:58 ` giovannibajo at libero dot it
2004-01-26 0:58 ` cvs-commit at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-26 0:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-26 00:56 -------
Subject: Bug 13810
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: giovannibajo@gcc.gnu.org 2004-01-26 00:55:59
Modified files:
gcc/cp : ChangeLog parser.c semantics.c
Log message:
PR c++/13810
* parser.c (cp_parser_type_parameter): When cp_parser_id_expression
returns a TYPE_DECL. no further lookup is required.
* semantics.c (check_template_template_default_arg): A TYPE_DECL
is invalid. Rework to give better diagnostics.
Patches:
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.13&r2=1.3892.2.14
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.3&r2=1.157.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.381.4.1&r2=1.381.4.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4 Regression] ICE on invalid default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-01-26 0:56 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-26 0:58 ` giovannibajo at libero dot it
2004-01-26 0:58 ` cvs-commit at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-26 0:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-26 00:58 -------
Fixed for 3.4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13810
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/13810] [3.4 Regression] ICE on invalid default templates
2004-01-22 8:22 [Bug c++/13810] New: [3.4/3.5 Regression] ICE on default templates pinskia at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-01-26 0:58 ` giovannibajo at libero dot it
@ 2004-01-26 0:58 ` cvs-commit at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-26 0:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-26 00:58 -------
Subject: Bug 13810
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: giovannibajo@gcc.gnu.org 2004-01-26 00:58:21
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: ttp7.C
Log message:
PR c++/13810
* g++.dg/template/ttp7.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.17&r2=1.3389.2.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ttp7.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=13810
^ permalink raw reply [flat|nested] 13+ messages in thread