diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-07 08:19:48 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-07 08:19:48 +0000 |
commit | 15e18a8ca21478dce0d19e9e0fc1ef61fba9fac7 (patch) | |
tree | ac7198bcaff351ddad9f6145ef4bf9118f191c97 /gcc/c/ChangeLog | |
parent | 8b3283011c06121e3d5a53cfcfe57f681c87ba9d (diff) | |
download | gcc-15e18a8ca21478dce0d19e9e0fc1ef61fba9fac7.tar.gz |
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
Diffstat (limited to 'gcc/c/ChangeLog')
-rw-r--r-- | gcc/c/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index d6b228902f9..357d2c4d376 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,10 @@ +2015-01-07 Marek Polacek <polacek@redhat.com> + + PR c/64417 + * c-typeck.c (process_init_element): Disallow initialization of + a flexible array member with a string constant if the structure + is in an array. + 2015-01-05 Jakub Jelinek <jakub@redhat.com> PR sanitizer/64344 |