Commit 0f4d5c1c by Ian Lance Taylor Committed by Ian Lance Taylor

rtti.c (build_dynamic_cast_1): Give a better error message for an attempt to…

rtti.c (build_dynamic_cast_1): Give a better error message for an attempt to dynamic_cast a polymorphic type.

	* rtti.c (build_dynamic_cast_1): Give a better error message for
	an attempt to dynamic_cast a polymorphic type.

From-SVN: r30248
parent a6092975
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.
......
......@@ -692,6 +692,9 @@ build_dynamic_cast_1 (type, expr)
}
}
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment