aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgitlost <burmartke@gmail.com>2022-03-23 12:56:37 +0000
committergitlost <burmartke@gmail.com>2022-03-23 12:56:37 +0000
commit10c58257159f8c8d046dd3cb93dde6b404414169 (patch)
treef8d8d4fb690ca1fbe1cc4d07a69b8a8fe65979be /src/check_expr.cpp
parent0446d9721b6dab157f4e15412b069871414c12e9 (diff)
Fix issue #829 "Compiler crashes when declaring maps with procedure"
Inits `o->value` in `check_expr_base_internal()` so doesn't accidentally use last (the proc lit was being set to that of previous string) Adds test to "tests/issues" and changes CI to use new "run" shells
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index b7039fd9a..66bf8bbd7 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -9000,6 +9000,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
o->mode = Addressing_Invalid;
o->type = t_invalid;
+ o->value = {ExactValue_Invalid};
switch (node->kind) {
default: