PR c++/21369
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Oct 2005 16:38:52 +0000 (16:38 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Oct 2005 16:38:52 +0000 (16:38 +0000)
commit4f3113797abb30c984da55cc9c37a1deebe30f65
tree023c7aeb69682b23b3d71f879065e214f8895f29
parentca92b9d288e74b35970d2dfac26df708928eceb7
PR c++/21369
* parser.c (cp_parser_elaborated_type_specifier): Don't treat
class types as templates if the type is not appearing as part of a
type definition or declaration.
PR c++/21369
* g++.dg/parse/ret-type3.C: New test.

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