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; 7+ 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] 7+ messages in thread
[parent not found: <bug-40821-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-05-21 15:21 UTC | newest]

Thread overview: 7+ 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
     [not found] <bug-40821-4@http.gcc.gnu.org/bugzilla/>
2012-05-16 12:27 ` paolo.carlini at oracle dot com
2012-05-19 19:24 ` paolo.carlini at oracle dot com
2012-05-21 15:21 ` paolo at gcc dot gnu.org
2012-05-21 15:21 ` paolo.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).