https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118760
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Previously we returned 'id' here but no longer: if (template_keyword_p) { tree scope = (parser->scope ? parser->scope : parser->context->object_type); if (scope && TYPE_P (scope) && (!CLASS_TYPE_P (scope) || (check_dependency_p && dependent_scope_p (scope)))) { /* We're optimizing away the call to cp_parser_lookup_name, but we still need to do this. */ parser->object_scope = parser->context->object_type; parser->context->object_type = NULL_TREE; return identifier; } }