https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110730
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> --- Without modules we end up calling _ZNSt10filesystem12current_pathB5cxx11Ev i.e. std::filesystem::current_path[abi:cxx11]() and with modules we call _ZNSt10filesystem12current_pathEv i.e. the non-abi-tagged version. The abi tag is getting lost because we don't stream the abi_tag attribute attached to an inline namespace.