+++ This bug was initially created as a clone of Bug #2188013 +++ We cannot assume that libstdc++.so.6 performs std::cout etc. initialization, so the GTS header files need to keep using the old initialization model. Otherwise, things will build and link just fine, but the initialization might not happen as expected. Note: Needs to be transitioned to the gcc-toolset-13-gcc component once that exists.
Jakub suggests that we could pull in an ELF constructor in libstdc++_nonshared.a instead (with an appropriate early priority).