diff options
Diffstat (limited to 'bootstrap')
| -rw-r--r-- | bootstrap/parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap/parse.c b/bootstrap/parse.c index 99d317a..fd38860 100644 --- a/bootstrap/parse.c +++ b/bootstrap/parse.c @@ -2701,6 +2701,7 @@ parsefn(struct decl *decl, struct parser *P) { lexexpect(P, '{'); env->parent = P->curenv; + WITH_TMPCHANGE(struct blockstmt *, P->curblock, NULL) // do not inherit defers WITH_TMPCHANGE(struct fn *, P->curfn, fn) { pushenv(P, env); putdecl(P, tok.span, &(struct decl) { |