public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40821] New: C++ compiler accepts __attribute__ with missing parens
@ 2009-07-21 20:42 pc-wx at bullseye dot com
2009-08-25 14:15 ` [Bug c++/40821] " bangerth at gmail dot com
2009-12-26 19:13 ` paolo dot carlini at oracle dot com
0 siblings, 2 replies; 3+ messages in thread
From: pc-wx at bullseye dot com @ 2009-07-21 20:42 UTC (permalink / raw)
To: gcc-bugs
The declaration of S2 below is accepted by the C++ compiler, but not the C
compiler.
struct __attribute__((aligned(8))) S1 { int i; };
struct __attribute__( aligned(8) S2 { int i; };
Tentative parsing causes the paren checks to have no effect.
--
Summary: C++ compiler accepts __attribute__ with missing parens
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pc-wx at bullseye dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40821
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/40821] C++ compiler accepts __attribute__ with missing parens
2009-07-21 20:42 [Bug c++/40821] New: C++ compiler accepts __attribute__ with missing parens pc-wx at bullseye dot com
@ 2009-08-25 14:15 ` bangerth at gmail dot com
2009-12-26 19:13 ` paolo dot carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: bangerth at gmail dot com @ 2009-08-25 14:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bangerth at gmail dot com 2009-08-25 14:15 -------
Confirmed. Very odd.
--
bangerth at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at gmail dot com
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-08-25 14:15:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40821
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/40821] C++ compiler accepts __attribute__ with missing parens
2009-07-21 20:42 [Bug c++/40821] New: C++ compiler accepts __attribute__ with missing parens pc-wx at bullseye dot com
2009-08-25 14:15 ` [Bug c++/40821] " bangerth at gmail dot com
@ 2009-12-26 19:13 ` paolo dot carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-26 19:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from paolo dot carlini at oracle dot com 2009-12-26 19:12 -------
Maybe related to c++/36625 ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40821
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-26 19:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-21 20:42 [Bug c++/40821] New: C++ compiler accepts __attribute__ with missing parens pc-wx at bullseye dot com
2009-08-25 14:15 ` [Bug c++/40821] " bangerth at gmail dot com
2009-12-26 19:13 ` paolo dot carlini at oracle dot com
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).