[Bug c++/58772] __attribute__((aligned(16))) and nested classes cause -ftree-vectorize to generate segfaulting code
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 21 08:52:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58772
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
The syntax would be
int main()
{
Actor *act;
::posix_memalign (&act, 16, sizeof (Actor));
new (*act) Actor;
}
that is, you have to use a different allocator. Paolo, does libstdc++
provide a custom allocator for aligned memory? Is this issue going to
be resolved with C++1y?
More information about the Gcc-bugs
mailing list