re PR c++/3478 (Accepts invalid "enum typename")
PR c++/3478 * parser.c (cp_parser_decl_specifier_seq): If the first decl_spec is error_mark_node, don't add any more decl_specs. (cp_parser_init_declarator): After committing to a declaration, if the decl_specifiers start with error_mark_node, issue an error and change the type to "int". From-SVN: r75688
Showing
Please
register
or
sign in
to comment