diff options
| author | gitlost <burmartke@gmail.com> | 2022-03-23 12:56:37 +0000 |
|---|---|---|
| committer | gitlost <burmartke@gmail.com> | 2022-03-23 12:56:37 +0000 |
| commit | 10c58257159f8c8d046dd3cb93dde6b404414169 (patch) | |
| tree | f8d8d4fb690ca1fbe1cc4d07a69b8a8fe65979be /src/check_expr.cpp | |
| parent | 0446d9721b6dab157f4e15412b069871414c12e9 (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.cpp | 1 |
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: |