public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/113387] New: __attribute__ does not mix with [[gnu:]]
@ 2024-01-14 10:22 gjl at gcc dot gnu.org
2024-01-14 10:26 ` [Bug c/113387] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: gjl at gcc dot gnu.org @ 2024-01-14 10:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113387
Bug ID: 113387
Summary: __attribute__ does not mix with [[gnu:]]
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target Milestone: ---
The following compiles fine
[[gnu::used]] __attribute__((used)) int x;
while
__attribute__((used)) [[gnu::used]] int x;
bar.c:1:1: warning: 'used' attribute does not apply to types [-Wattributes]
1 | __attribute__((used)) [[gnu::used]] int x;
| ^~~~~~~~~~~~~
bar.c:1:37: error: expected identifier or '(' before 'int'
1 | __attribute__((used)) [[gnu::used]] int x;
| ^~~
IMO both should be valid.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/113387] __attribute__ does not mix with [[gnu:]]
2024-01-14 10:22 [Bug c/113387] New: __attribute__ does not mix with [[gnu:]] gjl at gcc dot gnu.org
@ 2024-01-14 10:26 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-14 10:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113387
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 108796 .
*** This bug has been marked as a duplicate of bug 108796 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-14 10:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-14 10:22 [Bug c/113387] New: __attribute__ does not mix with [[gnu:]] gjl at gcc dot gnu.org
2024-01-14 10:26 ` [Bug c/113387] " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).