https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84367
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-02-19 Ever confirmed|0 |1 --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Frederic Tingaud from comment #2) > Running with GCC v7.3.0 - libc++=20180125 This only shows which compiler was used at preprocessing time, are you sure you linked to the right libstdc++.so? https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths When I test with GCC 7.3.0 it works correctly. N.B. your test case doesn't work, you need a main function.