re PR c++/9154 (poor error message for ">>" vs. "> >" for nested template args)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Thu, 18 Dec 2003 11:50:58 +0000 (11:50 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Thu, 18 Dec 2003 11:50:58 +0000 (11:50 +0000)
commit4d5297fad469676a2ac36f512fdcc6ef9eb7e251
tree903a3d5514be16a67cf897721d58405cffb064fb
parenta21f130e82ebee7ccdee1e89d45fbb1969555a81
re PR c++/9154 (poor error message for ">>" vs. "> >" for nested template args)

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.

From-SVN: r74776
gcc/cp/ChangeLog
gcc/cp/parser.c