https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102881
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |ppalka at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Seems foo gets silently (because of tentative parser in cp_parser_late_return_type_opt -> cp_parser_trailing_type_id -> cp_parser_type_id_1 -> cp_parser_type_specifier_seq -> cp_parser_type_specifier -> cp_parser_simple_type_specifier 19684 /* Don't gobble tokens or issue error messages if this is an 19685 optional type-specifier. */ 19686 if (flags & CP_PARSER_FLAGS_OPTIONAL) 19687 cp_parser_parse_tentatively (parser); ) late_return of error_mark_node, and that then causes pushdecl not to happen and so it isn't found. But getting lost in why the type specifier parsing failed...