PR c++/9154
authorgiovannibajo <giovannibajo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2003 11:50:58 +0000 (11:50 +0000)
committergiovannibajo <giovannibajo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 2003 11:50:58 +0000 (11:50 +0000)
commitbece9ea1949e1f70d7125733b865a696ad738a98
tree903a3d5514be16a67cf897721d58405cffb064fb
parentcbaa6aa786bd1aa17dea1235e36eb5278dee6a01
PR c++/9154
* parser.c (cp_parser_template_argument): A type-id followed by '>>'
is just an user typo, and should be accepted as last resort if any
other parsing fails.
(cp_parser_enclosed_template_argument_list): If the argument list is
parsed correctly, but the next token is '>>', emit a diagnostic.
(cp_parser_next_token_ends_template_argument): Accept '>>' as
delimiter of template argument, it will be later detected as a typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74776 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c