From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9165 invoked by alias); 21 Jul 2009 20:42:41 -0000 Received: (qmail 9120 invoked by uid 48); 21 Jul 2009 20:42:26 -0000 Date: Tue, 21 Jul 2009 20:42:00 -0000 Subject: [Bug c++/40821] New: C++ compiler accepts __attribute__ with missing parens X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pc-wx at bullseye dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg01696.txt.bz2 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