[Bug c/64856] Initializing struct not accepted in gnu99
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 9 21:19:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64856
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Feb 9 21:19:02 2015
New Revision: 220550
URL: https://gcc.gnu.org/viewcvs?rev=220550&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr64856.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list