Commit f3b4fb6e by Richard Stallman

(finish_decl): Allow file-scope static incomplete array.

From-SVN: r5094
parent 1e40eab8
...@@ -3459,10 +3459,10 @@ finish_decl (decl, init, asmspec_tree) ...@@ -3459,10 +3459,10 @@ finish_decl (decl, init, asmspec_tree)
&& (TREE_STATIC (decl) && (TREE_STATIC (decl)
? ?
/* A static variable with an incomplete type /* 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' Otherwise, let it through, but if it is not `extern'
then it may cause an error message later. */ 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 /* An automatic variable with an incomplete type
is an error. */ is an error. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment