From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21174 invoked by alias); 9 Apr 2015 15:11:53 -0000 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 Received: (qmail 21096 invoked by uid 48); 9 Apr 2015 15:11:48 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65715] New: Aligned attribute C++ issues Date: Thu, 09 Apr 2015 15:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc dependson Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg00702.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65715 Bug ID: 65715 Summary: Aligned attribute C++ issues Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: hubicka at gcc dot gnu.org, jason at gcc dot gnu.org Depends on: 65690 +++ This bug was initially created as a clone of Bug #65690 +++ typedef double T[4][4] __attribute__((aligned (16))); void foo (const T); struct S { T s; }; int main () { if (__alignof__ (struct S) < 16 || __alignof__ (T) < 16) __builtin_abort (); return 0; } (distilled from WebKit) fails with C++ starting with r219705 (but keeps working with C). Without the const T in the argument list of foo (or with just T in there) it works.