https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81371
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The problem is std::string could be std::__cxx11::basic_string or just std::basic_string depending on the ABI chosen at compile time.