https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113674
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Maybe we shouldn't canonicalize attribute names like this, because they can be then canonicalized multiple times, each time removing the __ and __ pair from it and so could lead to inconsistencies. Now, no standard nor supported attribute name starts with _, so perhaps it could be even just punt if it is prefixed with ___ instead of __ (though, guess one can use -Wno-attributes=something::_foo ).