OSDN Git Service

(finish_decl): Allow file-scope static incomplete array.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Aug 1993 08:48:29 +0000 (08:48 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Aug 1993 08:48:29 +0000 (08:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5094 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-decl.c

index 734577a..65ff9f7 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.  */