pt.c (instantiate_class_template): Set CLASSTYPE_VBASECLASSES.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 3 Jul 2000 08:13:33 +0000 (08:13 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 3 Jul 2000 08:13:33 +0000 (08:13 +0000)
* pt.c (instantiate_class_template): Set CLASSTYPE_VBASECLASSES.
* semantics.c (begin_class_definition): Clear it.

From-SVN: r34842

gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/semantics.c

index 96cd52a..3063e0f 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-03  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * pt.c (instantiate_class_template): Set CLASSTYPE_VBASECLASSES.
+       * semantics.c (begin_class_definition): Clear it.
+
 2000-07-02  Benjamin Chelf  <chelf@codesourcery.com>
 
        * cp-tree.h (genrtl_goto_stmt): Remove declaration.
index 0eec453..50fdbf0 100644 (file)
@@ -4841,6 +4841,8 @@ instantiate_class_template (type)
       TYPE_FIELDS (type) = TYPE_FIELDS (pattern);
       TYPE_METHODS (type) = TYPE_METHODS (pattern);
       CLASSTYPE_TAGS (type) = CLASSTYPE_TAGS (pattern);
+      CLASSTYPE_VBASECLASSES (type) = CLASSTYPE_VBASECLASSES (pattern);
+      
       /* Pretend that the type is complete, so that we will look
         inside it during name lookup and such.  */
       TYPE_SIZE (type) = bitsize_zero_node;
index 485cc59..1aeb545 100644 (file)
@@ -1886,6 +1886,7 @@ begin_class_definition (t)
          TYPE_FIELDS (t) = NULL_TREE;
          TYPE_METHODS (t) = NULL_TREE;
          CLASSTYPE_TAGS (t) = NULL_TREE;
+         CLASSTYPE_VBASECLASSES (t) = NULL_TREE;
          TYPE_SIZE (t) = NULL_TREE;
        }