pt.c (lookup_template_class): Make sure it's a primary template or template_template_...
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 6 Feb 2001 10:49:44 +0000 (10:49 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 6 Feb 2001 10:49:44 +0000 (10:49 +0000)
commita87b4257946d4453f250585aa22adc4f70db1165
tree6a08cb3fd371edfc5ba41f41aca58244a2e031de
parent4050de4912df9909d867d887c60378c7a74621f9
pt.c (lookup_template_class): Make sure it's a primary template or template_template_parm when...

cp:
* pt.c (lookup_template_class): Make sure it's a primary
template or template_template_parm when called from the parser.
(instantiate_template_class): Add assertion.
testsuite:
* g++.old-deja/g++.pt/spec39.C: New test.

From-SVN: r39488
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/spec39.C [new file with mode: 0644]