https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119274
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #60742|0 |1 is obsolete| | --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 60743 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60743&action=edit Slightly more reduced Stil have the need for std::vector but removed most other code. I am suspecting r15-5361-gaac5c57ee16723 which exposed this. Basically it takes slightly more passes to optimize away the if inside drop_inplace but it should not.