an attempt to dynamic_cast a polymorphic type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30248
138bc75d-0d04-0410-961f-
82ee72b054a4
+1999-10-28 Ian Lance Taylor <ian@zembu.com>
+
+ * rtti.c (build_dynamic_cast_1): Give a better error message for
+ an attempt to dynamic_cast a polymorphic type.
+
1999-10-27 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (make_temp_vec): Remove.
}
}
+ cp_error ("dynamic_cast from non-polymorphic type `%#T'", exprtype);
+ return error_mark_node;
+
fail:
cp_error ("cannot dynamic_cast `%E' (of type `%#T') to type `%#T'",
expr, exprtype, type);