PR c/63567
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 19 Oct 2014 16:47:35 +0000 (16:47 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 19 Oct 2014 16:47:35 +0000 (16:47 +0000)
commitd303aeafa9b46e06cd853696acb6345dff51a6b9
treeea2bf947f9fb2a51c3da0346c6c1a18b7d9ff357
parentbfa8c6e840deb45e5d05b4644345a5062dec4468
PR c/63567
* c-typeck.c (output_init_element): Allow initializing objects with
static storage duration with compound literals even in C99 and add
pedwarn for it.

* gcc.dg/pr63567-3.c: New test.
* gcc.dg/pr63567-4.c: New test.

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