]> gcc.gnu.org Git - gcc.git/commit
re PR c++/13520 (gcc crashes with inheritance + default template parameter of nested...
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Fri, 2 Jan 2004 11:41:51 +0000 (11:41 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Fri, 2 Jan 2004 11:41:51 +0000 (11:41 +0000)
commitb0bc6e8e6cd3f0a5789f7e3079f05d583e80a565
tree28a6954b822b13e1756c9d931d9283cfa4358f34
parentdaef8bbd72bac6afdc1f0c13ff4b6349128d8674
re PR c++/13520 (gcc crashes with inheritance + default template parameter of nested template type)

PR c++/13520
* cp-tree.h (DECL_UNBOUND_CLASS_TEMPLATE_P): New macro.
(DECL_FUNCTION_TEMPLATE_P): Use it.
(DECL_CLASS_TEMPLATE_P): Likewise.
* parser.c (cp_parser_lookup_name): Add is_template parameter.
(cp_parser_type_parameter): Adjust call to cp_parser_lookup_name.
(cp_parser_template_name): Likewise.
(cp_parser_elaborated_type_specifier): Likewise.
(cp_parser_namespace_name): Likewise.
(cp_parser_class_name): Likewise.
(cp_parser_lookup_name_simple): Likewise.

* g++.dg/template/qualttp22.C: New test.

From-SVN: r75321
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/qualttp22.C [new file with mode: 0644]
This page took 0.059934 seconds and 5 git commands to generate.