https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89105
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-01-29 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This is seen while building libstdc++.so but is harmless and can be ignored: /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/fs_ops.cc: In function ‘uintmax_t std::filesystem::file_size(const std::filesystem::__cxx11::path&, std::error_code&)’: /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/fs_ops.cc:954:68: warning: empty class ‘std::filesystem::file_size(const std::filesystem::__cxx11::path&, std::error_code&)::<lambda(const auto:1&)>’ parameter passing ABI changes in -fabi-version=12 (GCC 8) [-Wabi] 954 | auto s = do_stat(p, ec, [](const auto& st) { return S{st}; }, S{}); | ^ /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/fs_ops.cc: In function ‘T {anonymous}::do_stat(const std::filesystem::__cxx11::path&, std::error_code&, Accessor, T) [with Accessor = std::filesystem::file_size(const std::filesystem::__cxx11::path&, std::error_code&)::<lambda(const auto:1&)>; T = std::filesystem::file_size(const std::filesystem::__cxx11::path&, std::error_code&)::S]’: /home/jwakely/src/gcc/gcc/libstdc++-v3/src/c++17/fs_ops.cc:925:5: warning: empty class ‘std::filesystem::file_size(const std::filesystem::__cxx11::path&, std::error_code&)::<lambda(const auto:1&)>’ parameter passing ABI changes in -fabi-version=12 (GCC 8) [-Wabi] 925 | do_stat(const fs::path& p, std::error_code& ec, Accessor f, T deflt) | ^~~~~~~ It can't be suppressed with a pragma (PR 87611).