]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/68668 (bogus error: invalid use of array with unspecified bounds)
authorMarek Polacek <polacek@redhat.com>
Mon, 7 Dec 2015 17:52:23 +0000 (17:52 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 7 Dec 2015 17:52:23 +0000 (17:52 +0000)
commit66189108d3785a463d2d1d0341fa6198582d9fd2
tree2f2cc1a708c2ce1bf995969f8634445e436baab6
parent71e546870c4afb3c3ff993bd354a98637bcccdc7
re PR c/68668 (bogus error: invalid use of array with unspecified bounds)

PR c/68668
* c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.

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

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