aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/parse.c')
-rw-r--r--bootstrap/parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap/parse.c b/bootstrap/parse.c
index ccdb510..2340182 100644
--- a/bootstrap/parse.c
+++ b/bootstrap/parse.c
@@ -2842,6 +2842,7 @@ staticvaryield(struct decl *decl, void *arg) {
if (a->P->is_header && a->externp && decl->var.ini)
fatal(a->P, decl->span,
"cannot define extern variable in header");
+ putdecl(a->P, decl->span, decl);
if (a->yield)
a->yield(decl, a->yarg);
}