https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64417

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Jan  7 08:19:48 2015
New Revision: 219278

URL: https://gcc.gnu.org/viewcvs?rev=219278&root=gcc&view=rev
Log:
    PR c/64417
c/
    * c-typeck.c (process_init_element): Disallow initialization of
    a flexible array member with a string constant if the structure
    is in an array.
testsuite/
    * gcc.c-torture/compile/pr28865.c: Add dg-errors.
    * gcc.dg/pr64417.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr64417.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.c-torture/compile/pr28865.c

Reply via email to