From a05cadf843343db649a8e77898c35d24290d9d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xenxo=20Espasand=C3=ADn?= Date: Sat, 11 Feb 2023 22:43:21 +0100 Subject: [PATCH] fix(compiler): reset scopes (#61) --- src/gsc/compiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gsc/compiler.cpp b/src/gsc/compiler.cpp index a33155c6..8680fb50 100644 --- a/src/gsc/compiler.cpp +++ b/src/gsc/compiler.cpp @@ -123,6 +123,7 @@ auto compiler::emit_decl_function(decl_function const& func) -> void label_idx_ = 0; can_break_ = false; can_continue_ = false; + scopes_.clear(); stackframe_.clear(); break_blks_.clear(); continue_blks_.clear();