re PR c++/16162 (Rejects valid member-template-definition)
authorMark Mitchell <mark@codesourcery.com>
Tue, 14 Sep 2004 05:44:39 +0000 (05:44 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 14 Sep 2004 05:44:39 +0000 (05:44 +0000)
commita52eb3bc7c904e73e3cbd53c0439b970143064cc
tree3a332a2f92838c27b7c50c00f897c00a624ad0a5
parent869d095e242efc092bb6c009a281ca20ad30abc3
re PR c++/16162 (Rejects valid member-template-definition)

PR c++/16162
* parser.c (cp_parser_id_expression): Correct value for
is_declarator.
(cp_parser_nested_name_specifier_opt): Look through typenames as
necessary.
(cp_parser_template_name): Honor check_dependency_p.

PR c++/16162
* g++.dg/template/decl2.C: New test.

From-SVN: r87483
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/decl2.C [new file with mode: 0644]