diff options
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/error.c | 2 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 97fb23b..cc40d91 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 9717ce0..a77edf5 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 6f99a5f..803c1c0 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) |