summaryrefslogtreecommitdiff
path: root/cparser/Elab.ml
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/Elab.ml')
-rw-r--r--cparser/Elab.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/cparser/Elab.ml b/cparser/Elab.ml
index 24a3709..f6ee199 100644
--- a/cparser/Elab.ml
+++ b/cparser/Elab.ml
@@ -1779,6 +1779,7 @@ let enter_decdefs local loc env sto dl =
let env2 = Env.add_ident env1 id sto' ty' in
(* check for incomplete type *)
if local && sto' <> Storage_extern
+ && not (is_function_type env ty')
&& wrap incomplete_type loc env ty' then
error loc "'%s' has incomplete type" s;
if local && sto' <> Storage_extern && sto' <> Storage_static then