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
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
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
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
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
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
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,
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796
Aaron Ballman changed:
What|Removed |Added
CC||aaron at aaronballman dot com
--- Comme
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
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
11 matches
Mail list logo