[Bug c/63567] Linux kernel build error due to non-static initializers
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 17 21:03:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Oct 17 21:02:54 2014
New Revision: 216416
URL: https://gcc.gnu.org/viewcvs?rev=216416&root=gcc&view=rev
Log:
PR c/63567
* c-typeck.c (digest_init): Allow initializing objects with static
storage duration with compound literals even in C99 and add pedwarn
for it.
* gcc.dg/pr61096-1.c: Change dg-error into dg-warning.
* gcc.dg/pr63567-1.c: New test.
* gcc.dg/pr63567-2.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr63567-1.c
trunk/gcc/testsuite/gcc.dg/pr63567-2.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/pr61096-1.c
More information about the Gcc-bugs
mailing list