Commit 75c8aac3 by Jan Hubicka Committed by Jan Hubicka

re PR c++/67581 (ICE on transparent union with -g enabled on x86_64-linux-gnu (verify_type failed))


	PR c/67581
	* g++.dg/torture/pr67581.C: New testcase.
	* c-family/c-common.c (handle_transparent_union_attribute): Update
	also type variants.

From-SVN: r231048
parent 7f091e1c
2015-11-29 Jan Hubicka <hubicka@ucw.cz>
PR c/67581
* c-common.c (handle_transparent_union_attribute): Update
also type variants.
2015-11-27 Martin Liska <mliska@suse.cz>
PR c++/68312
......
......@@ -7787,7 +7787,8 @@ handle_transparent_union_attribute (tree *node, tree name,
*node = type = build_duplicate_type (type);
}
TYPE_TRANSPARENT_AGGR (type) = 1;
for (tree t = TYPE_MAIN_VARIANT (type); t; t = TYPE_NEXT_VARIANT (t))
TYPE_TRANSPARENT_AGGR (t) = 1;
return NULL_TREE;
}
......
2015-11-29 Jan Hubicka <hubicka@ucw.cz>
PR c/67581
* g++.dg/torture/pr67581.C: New testcase.
2015-11-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/68559
......
/* { dg-do compile } */
union U
{
int x;
float y;
} __attribute__ ((__transparent_union__));
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