diff options
author | Richard Stallman <rms@gnu.org> | 1993-08-07 08:48:29 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-08-07 08:48:29 +0000 |
commit | f3b4fb6ec81b94a31c979ab29db18e6948ea380a (patch) | |
tree | 07537754df91a147dfc8a648cd9481986af1a949 /gcc | |
parent | 1e40eab8015f0487b154201fee46c21bd57e27c7 (diff) | |
download | gcc-f3b4fb6ec81b94a31c979ab29db18e6948ea380a.zip gcc-f3b4fb6ec81b94a31c979ab29db18e6948ea380a.tar.gz gcc-f3b4fb6ec81b94a31c979ab29db18e6948ea380a.tar.bz2 |
(finish_decl): Allow file-scope static incomplete array.
From-SVN: r5094
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 734577a..65ff9f7 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. */ |