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
This commit is contained in:
gitlost committed 2022-03-23 12:56:37 +00:00
1 parent 0446d9721b
commit 10c5825715
5 files changed
+72 -3

No files matched your search

+1
View File
@@ -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: