[Bug c++/30897] [4.1/4.2/4.3 regression] ICE with default argument in template template parameter
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Nov 2 05:50:00 GMT 2007
------- Comment #4 from jason at gcc dot gnu dot org 2007-11-02 05:50 -------
Subject: Bug 30897
Author: jason
Date: Fri Nov 2 05:50:06 2007
New Revision: 129844
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129844
Log:
PR c++/30897
* pt.c (push_template_decl_real): Set DECL_CONTEXT on template
template parms.
(lookup_template_class): Use it to get the outer template args
for instantiating one.
PR c++/29236
* pt.c (reduce_template_parm_level): tsubst the parameters
of a template template parm.
Added:
trunk/gcc/testsuite/g++.dg/template/ttp23.C
trunk/gcc/testsuite/g++.dg/template/ttp24.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30897
More information about the Gcc-bugs
mailing list