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

2024-08-06 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 --- Comment #15 from Joseph S. Myers --- The [[]] syntax is supported in C from GCC 10 onwards (in C++ in older versions as well). What's new in GCC 14 is that you can use it with :: in pre-C23 modes (with previous versions you needed -std=gnu2x

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

2024-08-06 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 --- Comment #14 from Bruno Haible --- (In reply to Joseph S. Myers from comment #13) > Everything available with __attribute__ is also available with [[]]; > __attribute__((foo)) is [[gnu::foo]]. Indeed, according to https://gcc.gnu.org/onlined

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

2024-08-06 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 --- Comment #13 from Joseph S. Myers --- Everything available with __attribute__ is also available with [[]]; __attribute__((foo)) is [[gnu::foo]]. You *do* need to ensure that the [[gnu::foo]] is placed in the right syntactic position for the e

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

2024-08-05 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796 Bruno Haible changed: What|Removed |Added CC||bruno at clisp dot org --- Comment #12 f

[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 spec

[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 --- Comme

[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 co

[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