re PR c/64417 ([SH] FAIL: gcc.c-torture/compile/pr28865.c -O0 (test for excess...
authorMarek Polacek <polacek@redhat.com>
Wed, 7 Jan 2015 08:19:48 +0000 (08:19 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 7 Jan 2015 08:19:48 +0000 (08:19 +0000)
commit2cc901dcb29e15e06bfeab82a9834b6254b4ae0f
treeac7198bcaff351ddad9f6145ef4bf9118f191c97
parent0e905f0f4656514d9a6f9112581e463ed64fd74b
re PR c/64417 ([SH] FAIL: gcc.c-torture/compile/pr28865.c   -O0  (test for excess errors))

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.

From-SVN: r219278
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]