1999-03-10 Mark Mitchell <mark@markmitchell.com>
+ * semantics.c (begin_class_definition): Call build_self_reference.
+ (finish_member_declaration): Set DECL_CONTEXT for TYPE_DECLs.
+
* search.c (assert_canonical_unmarked): Fix typo in prototype.
* search.c (dfs_canonical_queue): New function.
that we can get it back later. */
begin_tree ();
+ /* Make a declaration for this class in its own scope. */
+ build_self_reference ();
+
return t;
}
finish_struct. Presumably it is already set as the function is
parsed. Perhaps DECL_CLASS_CONTEXT is already set, too? */
DECL_CLASS_CONTEXT (decl) = current_class_type;
- else if (TREE_CODE (decl) == TYPE_DECL)
- /* Historically, DECL_CONTEXT was not set for a TYPE_DECL in
- finish_struct, so we do not do it here either. Perhaps we
- should, though. */
- ;
else
DECL_CONTEXT (decl) = current_class_type;