Commit 1ddd4323 by Nathan Sidwell Committed by Nathan Sidwell

pt.c (instantiate_class_template): Set CLASSTYPE_VBASECLASSES.

	* pt.c (instantiate_class_template): Set CLASSTYPE_VBASECLASSES.
	* semantics.c (begin_class_definition): Clear it.

From-SVN: r34842
parent 7a23a8df
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.
......
......@@ -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;
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment