PR c/64709
commit70279be92f789310f7f2a9aa6df4f2ae9920d4b5
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jan 2015 21:02:21 +0000 (29 21:02 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jan 2015 21:02:21 +0000 (29 21:02 +0000)
tree11ab17e0248f5e7538c9d5b630dba979f09c58b6
parent72d590fcb895b5bec3c61dc6a437f69f24a78467
PR c/64709
* c-typeck.c (pop_init_level): If constructor_elements has
exactly one element with integer_zerop value, set constructor_zeroinit
to 1.  Remove braces around warning_init call.

* gcc.dg/pr64709.c: New test.

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