This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68668] [6 Regression] bogus error: invalid use of array with unspecified bounds
- From: "jsm28 at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Dec 2015 00:25:31 +0000
- Subject: [Bug c/68668] [6 Regression] bogus error: invalid use of array with unspecified bounds
- Auto-submitted: auto-generated
- References: <bug-68668-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68668
--- Comment #7 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Author: jsm28
Date: Thu Dec 31 00:24:59 2015
New Revision: 232014
URL: https://gcc.gnu.org/viewcvs?rev=232014&root=gcc&view=rev
Log:
Backport PR c/68668 patch to fix PR c/69037.
gcc/c:
PR c/69037
Backport from mainline:
2015-12-07 Marek Polacek <polacek@redhat.com>
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/testsuite:
PR c/69037
Backport from mainline:
2015-12-07 Marek Polacek <polacek@redhat.com>
PR c/68668
* gcc.dg/pr68668.c: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr68668.c
Modified:
branches/gcc-5-branch/gcc/c/ChangeLog
branches/gcc-5-branch/gcc/c/c-decl.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog