This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35433] [4.2/4.3/4.4 regression] ICE with typeof and ternary operator
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2009 20:38:33 -0000
- Subject: [Bug c/35433] [4.2/4.3/4.4 regression] ICE with typeof and ternary operator
- References: <bug-35433-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jsm28 at gcc dot gnu dot org 2009-02-03 20:38 -------
Subject: Bug 35433
Author: jsm28
Date: Tue Feb 3 20:38:12 2009
New Revision: 143906
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143906
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/init-bad-6.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433