re PR c++/9836 (Error with typdefs in partial specializations of classes)
authorMark Mitchell <mark@codesourcery.com>
Mon, 24 Feb 2003 21:52:00 +0000 (21:52 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 24 Feb 2003 21:52:00 +0000 (21:52 +0000)
commit353b4fc0d72bbbf8a7b975d4d1e9cc6e036f458a
treeaea7c328c45ca231ae6c3de7a76a3787a6f4bbc4
parent2afced11918b76955f3262608cb4c5f66350fcdc
re PR c++/9836 (Error with typdefs in partial specializations of classes)

PR c++/9836
* cp-tree.h (CLASSTYPE_PRIMARY_TEMPLATE): Do not skip from
specializations back to the main template.
* parser.c (cp_parser_diagnose_invalid_type_name):Adjust use.
* pt.c (resolve_typename_type): Likewise.

PR c++/9836
* g++.dg/template/spec6.C: New test.

From-SVN: r63383
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/spec6.C [new file with mode: 0644]