re PR c/31520 (Latent bug in finish_decl causing an errorous "array subscript is...
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Sun, 15 Apr 2007 00:59:15 +0000 (00:59 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 15 Apr 2007 00:59:15 +0000 (17:59 -0700)
commitaa24028daf64ebdec03da6094b60c49f0823a16b
tree52cf0d33d0e98569dafb400e481d8efe4dec1998
parentf8b8c6d76d48edf5109e5af12d7ca4105534ccb4
re PR c/31520 (Latent bug in finish_decl causing an errorous "array subscript is above array bounds")

2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR c/31520
        * c-del.c (finish_decl): Grab the type of the decl after the call
        to store_init_value.
2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C/31520
        * testsuite/gcc.dg/gnu89-init-4.c: New testcase.

From-SVN: r123835
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gnu89-init-4.c [new file with mode: 0644]