diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index fa5f85c1e71..0e72864f028 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -184,7 +184,7 @@ throw_bad_cast () static tree throw_bad_typeid () { - tree fn = get_identifier ("__throw_bad_cast"); + tree fn = get_identifier ("__throw_bad_typeid"); if (IDENTIFIER_GLOBAL_VALUE (fn)) fn = IDENTIFIER_GLOBAL_VALUE (fn); else