From 6ac0194d21d90e29832fd1c996ba23e6e183d328 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 22 Nov 2007 23:12:29 +0000 Subject: 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/c-tree.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/c-tree.h') diff --git a/gcc/c-tree.h b/gcc/c-tree.h index c81801b..28f99c6 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -487,8 +487,7 @@ extern void c_push_function_context (struct function *); extern void c_pop_function_context (struct function *); extern void push_parm_decl (const struct c_parm *); extern struct c_declarator *set_array_declarator_inner (struct c_declarator *, - struct c_declarator *, - bool); + struct c_declarator *); extern tree c_builtin_function (tree); extern void shadow_tag (const struct c_declspecs *); extern void shadow_tag_warned (const struct c_declspecs *, int); -- cgit v1.1