re PR c++/5333 (ICE on nested template classes using other nested template classes)
authorMark Mitchell <mark@codesourcery.com>
Mon, 24 Feb 2003 07:43:23 +0000 (07:43 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 24 Feb 2003 07:43:23 +0000 (07:43 +0000)
commitca099ac8c57c9858373cf83befdfae7bab8e4a4e
tree85612b52e4377cb1291b4fccdef603a8f787b9cb
parent463f02cd037fbf3af66cdbfff526fcb48d2ba746
re PR c++/5333 (ICE on nested template classes using other nested template classes)

PR c++/5333
* cp-tree.h (CLASSTYPE_PRIMARY_TEMPLATE): New macro.
* parser.c (cp_parser_diagnose_invalid_type_name): Use it.
* pt.c (instantiate_class_template): Don't try to instantiate
dependent types.
(resolve_typename_type): Use CLASSTYPE_PRIMARY_TEMPLATE.

PR c++/5333
* g++.dg/parse/fused-params1.C: Adjust error messages.
* g++.dg/template/nested3.C: New test.

From-SVN: r63354
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/fused-params1.C
gcc/testsuite/g++.dg/template/nested3.C [new file with mode: 0644]