https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64922
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- My current understanding is that the std::string "foo" temporary is constructed, then destructed, then a store to here is performed (where here shares the stack slot with std::string "foo" temporary), and then for some reason the std:;string temporary is destructed again.