https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102258 --- Comment #2 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> --- That still doesn't work because you can't compare (the addresses of) different `std::type_info` objects.