re PR c++/12762 (Much worse error message when using a typedef with a template arg)
commitec75414ff74e7af8c95a3490fcc05b65e3bdf4a6
authorMark Mitchell <mark@codesourcery.com>
Fri, 14 Nov 2003 18:37:39 +0000 (14 18:37 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 14 Nov 2003 18:37:39 +0000 (14 18:37 +0000)
tree36e7ba862f69f85d49a24e25730b1af46c381145
parentf285d67bfe945cb4a02e3da0139aa4a171ba106a
re PR c++/12762 (Much worse error message when using a typedef with a template arg)

PR c++/12762
* parser.c (cp_parser_enclosed_template_argument_list): New
function.
(cp_parser_template_id): Use it.
(cp_parser_simple_type_specifier): Recognize invalid template
syntax.

PR c++/12762
* g++.dg/template/error3.C: New test.

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