aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/synth/synth-stmts.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/synth/synth-stmts.adb b/src/synth/synth-stmts.adb
index c40eaadc6..f99a3f0ec 100644
--- a/src/synth/synth-stmts.adb
+++ b/src/synth/synth-stmts.adb
@@ -1144,6 +1144,7 @@ package body Synth.Stmts is
Sel : Value_Acc;
begin
Sel := Synth_Expression_With_Basetype (C.Inst, Expr);
+ Strip_Const (Sel);
if Is_Static (Sel) then
case Sel.Typ.Kind is
when Type_Bit