From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18245 invoked by alias); 4 Jun 2004 13:42:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 18210 invoked by uid 48); 4 Jun 2004 13:42:31 -0000 Date: Fri, 04 Jun 2004 13:42:00 -0000 Message-ID: <20040604134231.18209.qmail@sourceware.org> From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040603143635.15795.ma1flfs@bath.ac.uk> References: <20040603143635.15795.ma1flfs@bath.ac.uk> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/15795] No way to teach operator new anything about alignment requirements X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg00468.txt.bz2 List-Id: ------- Additional Comments From bangerth at dealii dot org 2004-06-04 13:42 ------- As for a workaround: you can of course overload operator new, and do a trick like struct Align16 {} align16; // overload operator new to take an argument of type Align16 __m128 *p = new(align16) __m128; W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795