(finish_decl): Allow file-scope static incomplete array.
authorRichard Stallman <rms@gnu.org>
Sat, 7 Aug 1993 08:48:29 +0000 (08:48 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 7 Aug 1993 08:48:29 +0000 (08:48 +0000)
From-SVN: r5094

gcc/c-decl.c

index 734577a24505ba8afee13b0d60f29cbb1366584e..65ff9f7a6891cd6c3b97d4ff35454a2d7e751449 100644 (file)
@@ -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.  */