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