https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113841 --- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- There's no problem with pair, it's basic_string that fails.