From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12552 invoked by alias); 21 Oct 2013 08:52:10 -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 12506 invoked by uid 48); 21 Oct 2013 08:52:04 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58772] __attribute__((aligned(16))) and nested classes cause -ftree-vectorize to generate segfaulting code Date: Mon, 21 Oct 2013 08:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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: 2013-10/txt/msg01458.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58772 --- Comment #3 from Richard Biener --- The syntax would be int main() { Actor *act; ::posix_memalign (&act, 16, sizeof (Actor)); new (*act) Actor; } that is, you have to use a different allocator. Paolo, does libstdc++ provide a custom allocator for aligned memory? Is this issue going to be resolved with C++1y?