From: Richard Stallman Date: Sat, 7 Aug 1993 08:48:29 +0000 (+0000) Subject: (finish_decl): Allow file-scope static incomplete array. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3b4fb6ec81b94a31c979ab29db18e6948ea380a;p=gcc.git (finish_decl): Allow file-scope static incomplete array. From-SVN: r5094 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 734577a2450..65ff9f7a689 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3459,10 +3459,10 @@ finish_decl (decl, init, asmspec_tree) && (TREE_STATIC (decl) ? /* A static variable with an incomplete type - is an error if it is initialized or `static'. + is an error if it is initialized. Otherwise, let it through, but if it is not `extern' then it may cause an error message later. */ - !TREE_PUBLIC (decl) || DECL_INITIAL (decl) + DECL_INITIAL (decl) != 0 : /* An automatic variable with an incomplete type is an error. */