Index: gcc/cp/rtti.c =================================================================== --- gcc/cp/rtti.c (revision 209789) +++ gcc/cp/rtti.c (working copy) @@ -1059,25 +1059,33 @@ typeinfo_in_lib_p (tree type) library for simple types T. */ if (TYPE_PTR_P (type) && (cp_type_quals (TREE_TYPE (type)) == TYPE_QUAL_CONST || cp_type_quals (TREE_TYPE (type)) == TYPE_UNQUALIFIED)) type = TREE_TYPE (type); switch (TREE_CODE (type)) { case INTEGER_TYPE: case BOOLEAN_TYPE: - case REAL_TYPE: case VOID_TYPE: case NULLPTR_TYPE: return true; + case REAL_TYPE: + type = TYPE_CANONICAL (type); + return type == float_type_node + || type == double_type_node + || type == long_double_type_node + || type == dfloat32_type_node + || type == dfloat64_type_node + || type == dfloat128_type_node; + case LANG_TYPE: /* fall through. */ default: return false; } } /* Generate the initializer for the type info describing TYPE. TK_INDEX is the index of the descriptor in the tinfo_desc vector. */