Matthias Kretz <Matthias.Kretz@xxxxxxxxxxxxxxxxxxxxx> writes: > Hi, > > On Friday 14 August 2009 12:59:30 Matthias Kretz wrote: >> Is this a bug in my code or in gcc? Do I have to add the alignment >> restriction to the Vector class itself also? > > Thinking about this further I think this is not gcc's responsibility since > operator new (or malloc) are library functions and those know nothing of the > alignment restrictions of the underlying type, right? Right. It is unfortunate that glibc's malloc on x86 does not return the alignment required by recent instructions. This is http://sourceware.org/bugzilla/show_bug.cgi?id=206 , which see for the reason that it does not work and for some things you can do about it. Ian