From b1dafcfe6dcdb73224a5cf7af7e8d9af48b1fbd7 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 5 Sep 2022 16:40:57 +0100 Subject: [PATCH] Fix #1992 `size_of` a relative slice crashes the compiler --- src/check_expr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index f115dd6b2..38d17c131 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -9586,6 +9586,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type case Ast_MapType: case Ast_BitSetType: case Ast_MatrixType: + case Ast_RelativeType: o->mode = Addressing_Type; o->type = check_type(c, node); break;