From 00bb3dad4082400b0176e8e650ce4d6786cc9e23 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 4 Dec 2000 16:36:04 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 7 +++++++ gcc/cp/error.c | 2 +- gcc/cp/typeck.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 97fb23ba765..cc40d916682 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2000-12-04 Nathan Sidwell + + * 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 * pt.c: Fix typo in comment. diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 9717ce03112..a77edf5991b 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -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? */ diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 6f99a5fb677..803c1c00c14 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -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)