From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24965 invoked by alias); 8 Jun 2004 20:06:27 -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 24944 invoked by alias); 8 Jun 2004 20:06:26 -0000 Date: Tue, 08 Jun 2004 20:06:00 -0000 Message-ID: <20040608200626.24943.qmail@sourceware.org> From: "jason at redhat dot com" 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/msg00984.txt.bz2 List-Id: ------- Additional Comments From jason at redhat dot com 2004-06-08 20:06 ------- Subject: Re: No way to teach operator new anything about alignment requirements On 8 Jun 2004 19:27:26 -0000, "ma1flfs at bath dot ac dot uk" wrote: > On Tuesday 08 June 2004 19:04, jason at redhat dot com wrote: >> Because you also need to override operator new for Foo, and any other type >> which requires alignment greater than that provided by malloc. > > That's my point. Doing this would suck very much... And is sometimes not > possible. Think template classes, STL or Qt are good examples. Feel free to propose an alternative solution. Jason -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795