PR c/64417
commit15e18a8ca21478dce0d19e9e0fc1ef61fba9fac7
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Jan 2015 08:19:48 +0000 (7 08:19 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Jan 2015 08:19:48 +0000 (7 08:19 +0000)
treeac7198bcaff351ddad9f6145ef4bf9118f191c97
parent8b3283011c06121e3d5a53cfcfe57f681c87ba9d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219278 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr28865.c
gcc/testsuite/gcc.dg/pr64417.c [new file with mode: 0644]