https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63164

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'd think it should just optimize __dynamic_cast to std::type_info::operator==
in that case (if that is available) or, if not (i.e. <typeinfo> not included)
to
    if (__name == __arg.__name)
      return true;
    return __name[0] != '*' && __builtin_strcmp (__name, __arg.__name) == 0;
or so.

Reply via email to