https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58483
--- Comment #7 from dennis luehring <dl.soluz at gmx dot net> --- clang got now support for (see: http://clang-developers.42468.n3.nabble.com/missing-optimization-opportunity-for-const-std-vector-compared-to-std-array-td4034587.html#none) void *__builtin_operator_new(size_t) void __builtin_operator_delete(void*) and using this in libc++ can reduce all testcases down to the const result gcc seems to have removed these long time ago and i currently do understand whats gcc solution could be