https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62052
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Segfaulting testcase from PR 65354: #include <iostream> int main () { auto f = +[] (std::string s) { return std::string (std::move (s)); }; std::string s ("hello"); f (std::move (s)); }