parser.c (cp_parser_template_id): Parse tentatively `[:' after a template name as...
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Thu, 29 Jan 2004 04:23:37 +0000 (04:23 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Thu, 29 Jan 2004 04:23:37 +0000 (04:23 +0000)
commitf4abade9fe297572fefc4484ac5f0c723c0c29df
tree93c7e64317cfb596c406d2a37ca8a432c8bd2d10
parent7625e73d5799718ee9cda40a17896a3335e76d6f
parser.c (cp_parser_template_id): Parse tentatively `[:' after a template name as it was `<::' (digraph typo).

* parser.c (cp_parser_template_id): Parse tentatively `[:' after a
template name as it was `<::' (digraph typo).
(cp_parser_nth_token_starts_template_argument_list_p): New function.
(cp_parser_id_expression): Use it.
(cp_parser_nested_name_specifier_opt): Likewise.
(cp_parser_template_name): Likewise.
(cp_parser_class_name): Likewise.
(cp_lexer_get_preprocessor_token): Use c_lex_with_flags.

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