[Bug c/63567] Linux kernel build error due to non-static initializers
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Oct 19 16:50:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567
--- Comment #12 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
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
More information about the Gcc-bugs
mailing list