re PR c++/9849 (Missing keyword 'template' produces ICE with no diagnostic on 3.3 (and unreadable diagnostic on 3.4)) PR c++/9849 * g++.dg/template/error4.C: New test. * g++.dg/template/nested3.C: Adjust error markers. PR c++/9849 * parser.c (cp_lexer_prev_token): New function. (cp_parser_skip_to_closing_parenthesis): Add consume_paren parameter. (cp_parser_nested_name_specifier_opt): Add is_declaration parameter. (cp_parser_nested_name_specifier): Likewise. (cp_parser_class_or_namespace_name): Likewise. (cp_parser_class_name): Likewise. (cp_parser_template_id): Likewise. (cp_parser_template_name): Likewise. (cp_parser_id_expression): Adjust calls to cp_parser_nested_name_specifier_op, cp_parser_template_id, cp_parser_class_name. (cp_parser_unqualified_id): Likewise. (cp_parser_postfix_expression): Likewise. (cp_parser_pseudo_destructor_name): Likewise. (cp_parser_cast_expression): Likewise. (cp_parser_mem_initializer_id): Likewise. (cp_parser_simple_type_specifier): Likewise. (cp_parser_type_name): Likewise. (cp_parser_elaborated_type_specifier): Likewise. (cp_parser_qualified_namespace_specifier): Likewise. (cp_parser_using_declaration): Likewise. (cp_parser_using_directive): Likewise. (cp_parser_ptr_operator): Likewise. (cp_parser_declarator_id): Likewise. (cp_parser_class_head): Likewise. (cp_parser_base_specifier): Likewise. (cp_parser_constructor_declarator_p): Likewise. (cp_parser_direct_declarator): Fix typo in comment. (cp_parser_parenthesized_expression_list): Adjust call to cp_parser_skip_to_closing_parenthesis. (cp_parser_selection_statement): Likewise. From-SVN: r74087
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ChangeLog | Loading commit data... | |
ChangeLog.1 | Loading commit data... | |
ChangeLog.2 | Loading commit data... | |
ChangeLog.egcs | Loading commit data... | |
Make-lang.in | Loading commit data... | |
NEWS | Loading commit data... | |
call.c | Loading commit data... | |
cfns.gperf | Loading commit data... | |
cfns.h | Loading commit data... | |
class.c | Loading commit data... | |
config-lang.in | Loading commit data... | |
cp-lang.c | Loading commit data... | |
cp-tree.def | Loading commit data... | |
cp-tree.h | Loading commit data... | |
cvt.c | Loading commit data... | |
cxx-pretty-print.c | Loading commit data... | |
cxx-pretty-print.h | Loading commit data... | |
cxxfilt.c | Loading commit data... | |
decl.c | Loading commit data... | |
decl.h | Loading commit data... | |
decl2.c | Loading commit data... | |
dump.c | Loading commit data... | |
error.c | Loading commit data... | |
except.c | Loading commit data... | |
expr.c | Loading commit data... | |
friend.c | Loading commit data... | |
g++spec.c | Loading commit data... | |
init.c | Loading commit data... | |
lang-specs.h | Loading commit data... | |
lex.c | Loading commit data... | |
lex.h | Loading commit data... | |
mangle.c | Loading commit data... | |
method.c | Loading commit data... | |
name-lookup.c | Loading commit data... | |
name-lookup.h | Loading commit data... | |
operators.def | Loading commit data... | |
optimize.c | Loading commit data... | |
parser.c | Loading commit data... | |
pt.c | Loading commit data... | |
ptree.c | Loading commit data... | |
repo.c | Loading commit data... | |
rtti.c | Loading commit data... | |
search.c | Loading commit data... | |
semantics.c | Loading commit data... | |
tree.c | Loading commit data... | |
typeck.c | Loading commit data... | |
typeck2.c | Loading commit data... |