re PR c++/30863 (Unsigned templatized struct treated as unsigned int)
authorMark Mitchell <mark@codesourcery.com>
Fri, 23 Mar 2007 04:37:40 +0000 (04:37 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 23 Mar 2007 04:37:40 +0000 (04:37 +0000)
commit8b84995aa37df18b21abcf161f23da7f957dc17d
tree9723544456dacd2f3c339caf6c315be105a9a932
parent725d6b877d6861a3075175c6620b6339f15eac6e
re PR c++/30863 (Unsigned templatized struct treated as unsigned int)

PR c++/30863
* parser.c (cp_parser_parse_and_diagnose_invalid_type_name): Do
not consume tokens when failing.
PR c++/30863
* g++.dg/template/error24.C: New test.
* g++.dg/parse/tmpl-outside1.C: Tweak error markers.

From-SVN: r123152
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/tmpl-outside1.C
gcc/testsuite/g++.dg/template/error24.C [new file with mode: 0644]