aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
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
parent013e4912833ebe5db705a0e8b3bd1c2ef62ef453 (diff)
oops
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/parse.c1
-rw-r--r--bootstrap/test2.cff2
2 files changed, 2 insertions, 1 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);
}
diff --git a/bootstrap/test2.cff b/bootstrap/test2.cff
index a48247e..979d251 100644
--- a/bootstrap/test2.cff
+++ b/bootstrap/test2.cff
@@ -16,7 +16,7 @@ struct Bit<T> {
!fn foo(x T) T { return ~x + Y; }
}
-defmacro def2(x, v) [def x = (v)]
+defmacro def2(x, v) [static x = (v)]
def2(Y, 3.3);