re PR c/64856 (Initializing struct not accepted in gnu99)
authorMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 9 Feb 2015 21:19:02 +0000 (21:19 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 9 Feb 2015 21:19:02 +0000 (21:19 +0000)
commitc3e38a03df5f6074fd83d06c2c8d7393b0446026
tree436bdfafd11d4124941fb10799652f5acdb9859d
parent6248441777104cf224e58669aaeb858310b9f668
re PR c/64856 (Initializing struct not accepted in gnu99)

PR c/64856
* c-typeck.c (process_init_element): Don't always wrap
COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
initializing a range of elements.

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

From-SVN: r220550
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64856.c [new file with mode: 0644]