diff options
author | Patrick Palka <ppalka@gcc.gnu.org> | 2015-07-15 00:01:21 +0000 |
---|---|---|
committer | Patrick Palka <ppalka@gcc.gnu.org> | 2015-07-15 00:01:21 +0000 |
commit | 09f725f4a6c0280681d375d0e204e4a6419dab53 (patch) | |
tree | e2551526421df58d3885fba451735651ba121582 /gcc/fold-const.c | |
parent | 524d2e49f2814e87875c1a5e911688027e8a3d91 (diff) | |
download | gcc-09f725f4a6c0280681d375d0e204e4a6419dab53.zip gcc-09f725f4a6c0280681d375d0e204e4a6419dab53.tar.gz gcc-09f725f4a6c0280681d375d0e204e4a6419dab53.tar.bz2 |
re PR c++/66850 (Adding a forward declaration of a template containing a template template parm causes ICE on valid code)
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.
From-SVN: r225801
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions