OSDN Git Service

PR c/37481
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 19 Apr 2009 20:38:53 +0000 (20:38 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 19 Apr 2009 20:38:53 +0000 (20:38 +0000)
commitfe49e5885b98c3e5b9a8c63f00db4cd9a08a9c9b
tree4850118ecd76a196e8b3bf9540aac5af9f27f4bf
parent714c7dceb6833a7c1011d2380766b264f4070e87
PR c/37481
* c-typeck.c (digest_init): Check for initializing an array with a
string literal.

testsuite:
* gcc.dg/c99-flex-array-7.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146359 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-flex-array-7.c [new file with mode: 0644]