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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2004 13:42:31 -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 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