OSDN Git Service

PR c/21213
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Apr 2005 00:47:06 +0000 (00:47 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Apr 2005 00:47:06 +0000 (00:47 +0000)
commit89dec2015d1992350a842017824e402e50a3a846
treecf0c6299cc325166c5334689a7def45d807128fa
parentf06d0246c6a8d6bb2accc9e8200e96f166e0c90c
PR c/21213
* c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
transparent union.

testsuite:
* gcc.dg/transparent-union-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98808 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/transparent-union-3.c [new file with mode: 0644]