http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19476
--- Comment #15 from Marc Glisse <glisse at gcc dot gnu.org> --- I posted a patch: http://gcc.gnu.org/ml/gcc-patches/2013-09/msg00676.html However, note that it only optimizes the testcase from this PR if we add #include <new> at the beginning, otherwise the implicit declaration of operator new doesn't have its operator_new_flag set...