https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110819

--- Comment #2 from AK <hiraditya at msn dot com> ---
> When compiled with clang, libstdc++'s std::vector uses __builtin_operator_new 
> which always has the -fassume-sane-operator-new semantics, and so can be 
> optimized.

yes clang optimizes with libstdc++ as well. what can be done in gcc for it to
detect that the new+delete pair can be optimized away?

Reply via email to