https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110734
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org --- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Attributes have been allowed on asm in C++ only since 2017's https://cplusplus.github.io/CWG/issues/2262.html which we apparently don't implement. See https://gcc.gnu.org/projects/cxx-dr-status.html It is not clear whether that change has been effectively applied as a DR and thus whether it should apply to earlier standards as well (guess starting with C++11) or not.