https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118277
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 60063 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60063&action=edit gcc15-pr118277.patch Untested fix. cp_parser_asm_specification_opt deferred for later discussion, if it should support asm ((...)) with dependent ..., it would be really hard (currently there is nowhere to attach a tree for the name (rather than const char *) and e.g. pragma renaming is performed already during parsing of the templates.