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
This commit is contained in:
Nathan Sidwell 2000-12-04 16:36:04 +00:00 committed by Nathan Sidwell
parent ae50db03d7
commit 00bb3dad40
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
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>
* pt.c: Fix typo in comment.

View File

@ -1219,7 +1219,7 @@ dump_function_decl (t, flags)
/* OK */;
else if (DECL_STATIC_FUNCTION_P (t))
print_identifier (scratch_buffer, "static ");
else if (TYPE_POLYMORPHIC_P (t))
else if (DECL_VIRTUAL_P (t))
print_identifier (scratch_buffer, "virtual ");
/* Print the return type? */

View File

@ -5046,7 +5046,7 @@ tree
build_static_cast (type, expr)
tree type, expr;
{
tree intype, binfo;
tree intype;
int ok;
if (type == error_mark_node || expr == error_mark_node)