[Bug c/108796] Can't intermix C2x and GNU style attributes

2024-01-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 Andrew Pinski changed: What|Removed |Added CC||gjl at gcc dot gnu.org --- Comment #11

[Bug c/108796] Can't intermix C2x and GNU style attributes

2023-02-16 Thread aaron at aaronballman dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 --- Comment #10 from Aaron Ballman --- One other reason for the Clang behavior that may be worth mentioning is that this helps users who wish to migrate away from `__attribute__` and towards `[[]]`. Many (most?) uses of attributes end up behind

[Bug c/108796] Can't intermix C2x and GNU style attributes

2023-02-16 Thread aaron at aaronballman dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 --- Comment #9 from Aaron Ballman --- > GNU attributes are declaration specifiers *in the previous examples given > here*, not necessarily in all other cases. Thanks for clarifying! > (There is then logic in GCC to handle __attribute__ that,

[Bug c/108796] Can't intermix C2x and GNU style attributes

2023-02-16 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 --- Comment #8 from joseph at codesourcery dot com --- On Thu, 16 Feb 2023, aaron at aaronballman dot com via Gcc-bugs wrote: > > The logic is that GNU attributes are declaration specifiers (and can mix > > anywhere with other declaration

[Bug c/108796] Can't intermix C2x and GNU style attributes

2023-02-16 Thread aaron at aaronballman dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 Aaron Ballman changed: What|Removed |Added CC||aaron at aaronballman dot com ---

[Bug c/108796] Can't intermix C2x and GNU style attributes

2023-02-15 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 --- Comment #6 from joseph at codesourcery dot com --- The logic is that GNU attributes are declaration specifiers (and can mix anywhere with other declaration specifiers), but standard attributes aren't declaration specifiers; rather, they

[Bug c/108796] Can't intermix C2x and GNU style attributes

2023-02-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 Andrew Pinski changed: What|Removed |Added Summary|GCC 13 accepts [[noreturn]] |Can't intermix C2x and GNU