* g++.dg/torture/pr67581.C: New testcase.
* c-family/c-common.c (handle_transparent_union_attribute): Update
also type variants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231048
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
*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
--- /dev/null
+/* { dg-do compile } */
+union U
+{
+ int x;
+ float y;
+} __attribute__ ((__transparent_union__));