re PR c++/21369 (Template function definition rejected if function return type begins...
authorMark Mitchell <mark@codesourcery.com>
Tue, 11 Oct 2005 16:38:52 +0000 (16:38 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 11 Oct 2005 16:38:52 +0000 (16:38 +0000)
commitca85f659109df84a4119c39afc5231f1eedc1459
tree023c7aeb69682b23b3d71f879065e214f8895f29
parent386cfa6f3f1aeba33362f4f3717c2df2980ade6c
re PR c++/21369 (Template function definition rejected if function return type begins with 'struct')

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.

From-SVN: r105241
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/ret-type3.C [new file with mode: 0644]