error.c (dump_function_decl): Use DECL_VIRTUAL_P, not TYPE_POLYMORPHIC_P.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 4 Dec 2000 16:36:04 +0000 (16:36 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 4 Dec 2000 16:36:04 +0000 (16:36 +0000)
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
gcc/cp/error.c
gcc/cp/typeck.c

index 97fb23ba76581fdc9179295b3545a5c3f81cdba0..cc40d916682161135feaf739779a2134dc84d4ce 100644 (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.
index 9717ce03112fe96ab926ead2a39219d5d801ea67..a77edf5991be27f8d6d22f51728e98e8dfe1c9de 100644 (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?  */
index 6f99a5fb6770e51137b3bfd424d791d705081fbe..803c1c00c1453a167098186b907354fae144f4d0 100644 (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)