PR c++/18738
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Dec 2004 00:42:33 +0000 (00:42 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Dec 2004 00:42:33 +0000 (00:42 +0000)
commitd9da068534782af5aba771eed232884c59c4f477
treef4dae82d23279fb3656e496ae669d665c8bd8f38
parent06ee48b4bb937d6acd0fdb9e48b4c0ce7f615267
PR c++/18738
* decl.c (make_typename_type): Do not handle namespace-scoped
names here.
(tag_name): Handle typename_type.
(check_elaborated_type_specifier): Handle typenames.
* parser.c (cp_parser_diagnose_invalid_type_name): Improve
comment.
(cp_parser_elaborated_type_specifier): Use
cp_parser_diagnose_invalid_type_name.

PR c++/18738
* g++.dg/template/typename8.C: New test.
* g++.dg/parse/friend2.C: Tweak error message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92172 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/friend2.C
gcc/testsuite/g++.dg/template/typename8.C [new file with mode: 0644]