aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-09-05 16:40:57 +0100
committergingerBill <bill@gingerbill.org>2022-09-05 16:40:57 +0100
commitb1dafcfe6dcdb73224a5cf7af7e8d9af48b1fbd7 (patch)
tree1f691971fe16d6aec91c5e0cc37eab0e4e79d765 /src
parent4998cf80c15555849d1ad119be3b2d4ff5cd6e1f (diff)
Fix #1992 `size_of` a relative slice crashes the compiler
Diffstat (limited to 'src')
-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 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;