Commit e5410b32 by Nathan Sidwell Committed by Nathan Sidwell

Amend previous changelog PR g++/2936 Part missed from first commit

Amend previous changelog
	PR g++/2936
	Part missed from first commit
	* decl2.c (finish_anon_union): Copy context.

From-SVN: r42777
parent feb48bde
2001-06-01 Nathan Sidwell <nathan@codesourcery.com>
PR g++/2936
Part missed from first commit
* decl2.c (finish_anon_union): Copy context.
2001-05-30 Nathan Sidwell <nathan@codesourcery.com>
PR g++/2936
* decl.c (finish_anon_union): Copy context.
* optimize.c (remap_decl): Remap anonymous aggregate members too.
2001-05-26 Nathan Sidwell <nathan@codesourcery.com>
......
......@@ -2113,6 +2113,9 @@ finish_anon_union (anon_union_decl)
int static_p = TREE_STATIC (anon_union_decl);
int external_p = DECL_EXTERNAL (anon_union_decl);
/* The VAR_DECL's context is the same as the TYPE's context. */
DECL_CONTEXT (anon_union_decl) = DECL_CONTEXT (TYPE_NAME (type));
if (TYPE_FIELDS (type) == NULL_TREE)
return;
......
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