re PR c/37481 (-pedantic accepts flexible array member = "string" initialization)
authorJoseph Myers <joseph@codesourcery.com>
Sun, 19 Apr 2009 20:38:53 +0000 (21:38 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 19 Apr 2009 20:38:53 +0000 (21:38 +0100)
commita45e580b25016442fdc11d987e72e899d9225996
tree4850118ecd76a196e8b3bf9540aac5af9f27f4bf
parent20845d35828c2d166550453b14b6e52c5f3b2826
re PR c/37481 (-pedantic accepts flexible array member = "string" initialization)

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.

From-SVN: r146359
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-flex-array-7.c [new file with mode: 0644]