See https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1984 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795 http://sourceware.org/bugzilla/show_bug.cgi?id=206
When __alignof(type) is 16 on a 32-bit system, and 'new' returns only 8-byte aligned memory, -ftree-vectorize can cause the code to crash. GCC should at least warn (or even error out) when __alignof(type) > alignment_of_new/malloc. Or it could use memalign, to fix this and avoid the crash. Right now it just silently creates code that crashes. -- Summary: gcc should warn when 'new' is used on type with alignof greater than 2*sizeof(void*) Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43874