Commit 0404d86f by Nathan Sidwell Committed by Nathan Sidwell

decl2.c (handle_class_head): Bash typedefs to the type's main decl.

	* decl2.c (handle_class_head): Bash typedefs to the type's main
	decl.

From-SVN: r34707
parent 24b55e3a
2000-06-26 Nathan Sidwell <nathan@codesourcery.com>
* decl2.c (handle_class_head): Bash typedefs to the type's main
decl.
2000-06-25 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (genrtl_begin_stmt_expr): Rename to ...
......
......@@ -5362,7 +5362,9 @@ handle_class_head (aggr, scope, id)
tree decl;
if (TREE_CODE (id) == TYPE_DECL)
decl = id;
/* We must bash typedefs back to the main decl of the type. Otherwise
we become confused about scopes. */
decl = TYPE_MAIN_DECL (TREE_TYPE (id));
else if (DECL_CLASS_TEMPLATE_P (id))
decl = DECL_TEMPLATE_RESULT (id);
else
......
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