re PR c++/28261 (ICE with enum in constructor definition)
PR c++/28261 * parser.c (cp_lexer_next_token_is_decl_specifier_keyword): New function. (cp_parser_constructor_declarator_p): Use it. (cp_parser_check_type_definition): Return a value indicating whether or not the definition is valid. (cp_parser_enum_specifier): Skip invalid enum definitions. PR c++/28261 * g++.dg/parse/enum3.C: New test. From-SVN: r117835
Showing
gcc/testsuite/g++.dg/parse/enum3.C
0 → 100644
Please
register
or
sign in
to comment