]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/14050 ([DR289] c99 restrict doesn't work in abs declarator)
authorJoseph Myers <joseph@codesourcery.com>
Thu, 22 Nov 2007 23:12:29 +0000 (23:12 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 22 Nov 2007 23:12:29 +0000 (23:12 +0000)
commit6ac0194d21d90e29832fd1c996ba23e6e183d328
treef8959fdd1818cd96126e42cc4ebcbcb497abeb58
parentdf8702365b9124ee1b29f8a25ba23fa0982fa237
re PR c/14050 ([DR289] c99 restrict doesn't work in abs declarator)

PR c/14050
* c-decl.c (set_array_declarator_inner): Don't give error for
static or type qualifiers in abstract declarator.  Remove
abstract_p parameter.
* c-tree.h (set_array_declarator_inner): Update prototype.
* c-parser.c (c_parser_direct_declarator_inner): Update call to
set_array_declarator_inner.
* doc/standards.texi: Update for C99 TC3.

testsuite:
* gcc.dg/c99-arraydecl-1.c: Don't expect errors for static or type
qualifiers in abstract declarator.

From-SVN: r130362
gcc/ChangeLog
gcc/c-decl.c
gcc/c-parser.c
gcc/c-tree.h
gcc/doc/standards.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-arraydecl-1.c