re PR c++/51228 (ICE with transparent union)
authorJason Merrill <jason@redhat.com>
Mon, 19 Dec 2011 20:10:25 +0000 (15:10 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 19 Dec 2011 20:10:25 +0000 (15:10 -0500)
commitd58d6eb5eca0451638d50752f3cbcc40084c4116
treec2eb8f16afd3cc6631c120b09947312fc1972e08
parent1784915af28cfbed713a9cd9a3ce4789c44ffb2b
re PR c++/51228 (ICE with transparent union)

PR c++/51228
* c-common.c (handle_transparent_union_attribute): Check the first
field if the type is complete.

From-SVN: r182494
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/transparent-union-1.c [new file with mode: 0644]