https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78747
--- Comment #3 from Jan Engelhardt <jengelh at inai dot de> --- The workaround is global { extern "C++" { *::_Rep::_S_empty_rep_storage; }} but of course that was not the question embedded in this "bug" report.