This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15795] No way to teach operator new anything about alignment requirements
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2004 19:04:16 -0000
- Subject: [Bug c++/15795] No way to teach operator new anything about alignment requirements
- References: <20040603143635.15795.ma1flfs@bath.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jason at redhat dot com 2004-06-08 19:04 -------
Subject: Re: No way to teach operator new anything about
alignment requirements
On 8 Jun 2004 18:45:04 -0000, "ma1flfs at bath dot ac dot uk" <gcc-bugzilla@gcc.gnu.org> wrote:
> Well, the workaround is a good idea in general, however, this program still
> segfaults...
Because you also need to override operator new for Foo, and any other type
which requires alignment greater than that provided by malloc.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795