[Bug c++/59898] alignment problems in std::map with avx/avx2

2014-01-24 Thread ignat at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59898 --- Comment #5 from ignat at gmx dot net --- 16 overloadable memory allocation functions??? brave new world! Nothing against the possibility to have explicit alignment (when you need to align to a cache line, page or disk-block), but why not just

[Bug c++/59898] alignment problems in std::map with avx/avx2

2014-01-23 Thread ignat at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59898 --- Comment #2 from ignat at gmx dot net --- (In reply to Jakub Jelinek from comment #1) > User error. The standard allocators don't guarantee sufficient alignment > for the vector types. OMG, I see. Thx for clarifying. So this means

[Bug c++/59898] New: alignment problems in std::map with avx/avx2

2014-01-21 Thread ignat at gmx dot net
++ Assignee: unassigned at gcc dot gnu.org Reporter: ignat at gmx dot net Created attachment 31904 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31904&action=edit avx_bug.cc The following code segfaults when compiled with -mavx or -mavx2 on g++ (Debian 4.7.2-5) 4