Commit 00bb3dad by Nathan Sidwell Committed by Nathan Sidwell

error.c (dump_function_decl): Use DECL_VIRTUAL_P, not TYPE_POLYMORPHIC_P.

cp:
	* error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
	TYPE_POLYMORPHIC_P.

	* typeck.c (build_static_cast): Remove unused variable.

From-SVN: r37996
parent ae50db03
2000-12-04 Nathan Sidwell <nathan@codesourcery.com>
* error.c (dump_function_decl): Use DECL_VIRTUAL_P, not
TYPE_POLYMORPHIC_P.
* typeck.c (build_static_cast): Remove unused variable.
2000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> 2000-12-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c: Fix typo in comment. * pt.c: Fix typo in comment.
......
...@@ -1219,7 +1219,7 @@ dump_function_decl (t, flags) ...@@ -1219,7 +1219,7 @@ dump_function_decl (t, flags)
/* OK */; /* OK */;
else if (DECL_STATIC_FUNCTION_P (t)) else if (DECL_STATIC_FUNCTION_P (t))
print_identifier (scratch_buffer, "static "); print_identifier (scratch_buffer, "static ");
else if (TYPE_POLYMORPHIC_P (t)) else if (DECL_VIRTUAL_P (t))
print_identifier (scratch_buffer, "virtual "); print_identifier (scratch_buffer, "virtual ");
/* Print the return type? */ /* Print the return type? */
......
...@@ -5046,7 +5046,7 @@ tree ...@@ -5046,7 +5046,7 @@ tree
build_static_cast (type, expr) build_static_cast (type, expr)
tree type, expr; tree type, expr;
{ {
tree intype, binfo; tree intype;
int ok; int ok;
if (type == error_mark_node || expr == error_mark_node) if (type == error_mark_node || expr == error_mark_node)
......
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