This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66850] Adding a forward declaration of a template containing a template template parm causes ICE on valid code
- From: "ppalka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Jul 2015 00:01:53 +0000
- Subject: [Bug c++/66850] Adding a forward declaration of a template containing a template template parm causes ICE on valid code
- Auto-submitted: auto-generated
- References: <bug-66850-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66850
--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Wed Jul 15 00:01:21 2015
New Revision: 225801
URL: https://gcc.gnu.org/viewcvs?rev=225801&root=gcc&view=rev
Log:
Fix PR c++/66850
gcc/cp/ChangeLog:
PR c++/66850
* pt.c (redeclare_class_template): Set the DECL_CONTEXTs of each
template template parm in the redeclaration.
(lookup_template_class_1): Peel off irrelevant template levels
from current_template_parms before augmenting the argument
list.
gcc/testsuite/ChangeLog:
PR c++/66850
* g++.dg/template/pr66850.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/pr66850.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog