This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r216440 - in /trunk/gcc: c/ChangeLog c/c-typeck...
- From: mpolacek at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sun, 19 Oct 2014 16:47:35 -0000
- Subject: r216440 - in /trunk/gcc: c/ChangeLog c/c-typeck...
Author: mpolacek
Date: Sun Oct 19 16:47:35 2014
New Revision: 216440
URL: https://gcc.gnu.org/viewcvs?rev=216440&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr63567-3.c
trunk/gcc/testsuite/gcc.dg/pr63567-4.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog