[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 that C++ is

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

2014-01-23 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59898 --- Comment #3 from Jakub Jelinek jakub at gcc dot gnu.org --- This unfortunately needs to be changed in the C++ standard, as long as the operator new functions/methods that must be used and user can override with their versions don't take the

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

2014-01-23 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59898 --- Comment #4 from Marc Glisse glisse at gcc dot gnu.org --- Here is a link to what the future (C++17) might look like for alignment: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3396.htm

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

2014-01-21 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59898 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED