re PR c/49120 (bogus "value computed is not used" warning (variable-length array...
authorJakub Jelinek <jakub@redhat.com>
Mon, 23 May 2011 18:02:03 +0000 (20:02 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 23 May 2011 18:02:03 +0000 (20:02 +0200)
commit0e0d82a784effdcfab26696cab66d03ed5f22300
treebb4e4965a02884e4f452f6882c7b2464c3220258
parent65712d5cf1e778ae8518b2193e484c53ddf1eb53
re PR c/49120 (bogus "value computed is not used" warning (variable-length array in compound statement))

PR c/49120
* c-decl.c (start_decl): Convert expr to void_type_node.

* gcc.dg/pr49120.c: New test.

From-SVN: r174081
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr49120.c [new file with mode: 0644]