https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70519
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- If you link with g++ or xg++ instead of gcc or xgcc, then the driver is adding -lstdc++ automatically.