aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/parse.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-08 10:29:37 +0200
committerlemon <lsof@mailbox.org>2022-08-08 10:29:37 +0200
commit064d1aea4ec642ac32c8e3b2b6ac88dce31da206 (patch)
treef2bf7ad5c4ae6f233309cbfa6ff5e57e0788ba28 /bootstrap/parse.c
parent013e4912833ebe5db705a0e8b3bd1c2ef62ef453 (diff)
oops
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);
}