https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102397
sandra at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sandra at gcc dot gnu.org --- Comment #1 from sandra at gcc dot gnu.org --- I committed a patch a few months ago to say that the new C++/C standard attribute syntax is supported with a gnu:: prefix, so at least the originally-reported problem has already been fixed. However, all the examples still use the old syntax. Given that there is an awful lot of legacy code using the old syntax already out there, examples are useful in helping people grok what it means, but at some point we probably want to encourage people to use the new syntax in new code for all the usual reasons why it's better to do things in a standard way, and use it also as the primary form for documentation. OTOH, I don't think we're quite there yet. Presently the manual describes C23 support as "experimental and incomplete" and says the default C language dialect is -std=gnu17. My sense is that it's not appropriate to tell users to make the switch until GCC's default dialect is advanced to something based on C23. So I'm going to leave this issue open for now instead of closing it as fixed, as a reminder that there is still more work to be done here a little farther down the road.