https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91067
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > This is a regression caused by moving the std::filesystem symbols into the > libstdc++.so shared library. It links OK with GCC 8 (using -lstdc++fs to > link to the static lib as needed for std::filesystem in GCC 8). To be clear, I meant it links OK with clang when using the headers+libs from GCC 8. (It also links OK when compiled with GCC 8, because it inlines differently.)