]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR c++/66850
authorppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Jul 2015 00:01:21 +0000 (00:01 +0000)
committerppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Jul 2015 00:01:21 +0000 (00:01 +0000)
commit484cbf21f768137a129361d99a587812c320f67e
treee2551526421df58d3885fba451735651ba121582
parent804de48f8b7b51653944857f702117ea645b5346
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225801 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr66850.C [new file with mode: 0644]