re PR c/35433 (ICE with typeof and ternary operator)
authorJoseph Myers <joseph@codesourcery.com>
Tue, 3 Feb 2009 20:38:12 +0000 (20:38 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 3 Feb 2009 20:38:12 +0000 (20:38 +0000)
commitf6294de75a14a23135eafbe422ad6696e9484982
tree9a5ac59c0878e4d7dc874eff3d31ec3dd883ecbf
parent1056e649deaff4bfffa57ae501163167c39c6c97
re PR c/35433 (ICE with typeof and ternary operator)

PR c/35433
* c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
for composite type involving a zero-length array type.

testsuite:
* gcc.dg/init-bad-6.c: New test.

From-SVN: r143906
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/init-bad-6.c [new file with mode: 0644]