https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125693
--- Comment #8 from Marc Mutz <marc.mutz at hotmail dot com> --- For insert(), where the argument type is const value_type &, a solution we use in Qt is to check the address of the argument is not in range of the container to avoid copying unless we must. But yes, we then also copy to the stack. But that would make the insert() test in the original reproducer work, because what we're inserting is precisely not in the container. For emplace, that technique doesn't work, of course.
