[Bug libstdc++/110572] ld.lld: error: duplicate symbol: std::type_info::operator==(std::type_info const&) const
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 31 13:23:48 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110572
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Peter Damianov from comment #5)
> #include <typeinfo>
> int main() { return typeid(0) == typeid(0); }
>
> The following reproduces for me, although strangely only with -std=c++23 and
> -static-libstdc++.
Because it's constexpr (and so always inline) in C++23, and not in C++20.
I think I probably meant to type c++23 in comment 3.
More information about the Gcc-bugs
mailing list