From 870e716f596817333d1ad4329e02cf3f57a9f1b6 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 6 Oct 2022 15:23:16 +0200 Subject: [PATCH] Missing support for bitstruct ".inner" --- src/compiler/sema_expr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/sema_expr.c b/src/compiler/sema_expr.c index 775e27576..d4642054a 100644 --- a/src/compiler/sema_expr.c +++ b/src/compiler/sema_expr.c @@ -2838,6 +2838,9 @@ static inline bool sema_create_const_inner(SemaContext *context, Expr *expr, Typ case TYPE_ENUM: inner = type->decl->enums.type_info->type->canonical; break; + case TYPE_BITSTRUCT: + inner = type->decl->bitstruct.base_type->type->canonical; + break; case TYPE_ARRAY: case TYPE_FLEXIBLE_ARRAY: case TYPE_SUBARRAY: