diff options
| author | gingerBill <bill@gingerbill.org> | 2022-09-05 16:40:57 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-09-05 16:40:57 +0100 |
| commit | b1dafcfe6dcdb73224a5cf7af7e8d9af48b1fbd7 (patch) | |
| tree | 1f691971fe16d6aec91c5e0cc37eab0e4e79d765 /src/check_expr.cpp | |
| parent | 4998cf80c15555849d1ad119be3b2d4ff5cd6e1f (diff) | |
Fix #1992 `size_of` a relative slice crashes the compiler
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 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; |