https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110572
peter0x44 at disroot dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter0x44 at disroot dot org --- Comment #5 from peter0x44 at disroot dot org --- #include <typeinfo> int main() { return typeid(0) == typeid(0); } The following reproduces for me, although strangely only with -std=c++23 and -static-libstdc++. x86_64-w64-mingw32-g++ test.cpp -static-libstdc++ -std=c++20 // no error x86_64-w64-mingw32-g++ test.cpp -static-libstdc++ -std=c++23 /usr/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld: /usr/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libstdc++.a(tinfo.o): in function `std::type_info::operator==(std::type_info const&) const': /build/mingw-w64-gcc/src/gcc/libstdc++-v3/libsupc++/tinfo.cc:42: multiple definition of `std::type_info::operator==(std::type_info const&) const'; /tmp/ccyAJVlk.o:test.cpp:(.text$_ZNKSt9type_infoeqERKS_[_ZNKSt9type_infoeqERKS_]+0x0): first defined here Related issue: https://github.com/skeeto/w64devkit/issues/86