From ee3a04b7dbfc796057a2ac0c8c1ae07744cc175d Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 13 Mar 2021 08:17:08 +0100 Subject: synth-oper: handle const for numeric_std.match Fix #1679 --- src/synth/synth-oper.adb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/synth/synth-oper.adb b/src/synth/synth-oper.adb index 0cf51f91d..99c3c474b 100644 --- a/src/synth/synth-oper.adb +++ b/src/synth/synth-oper.adb @@ -2054,6 +2054,7 @@ package body Synth.Oper is (+Expr, "operands of std_match don't have the same size"); return Create_Value_Discrete (0, Boolean_Type); end if; + Strip_Const (Cst); Res := Synth_Match (Ctxt, Cst, Oper, Expr); if Res = No_Net then return Create_Value_Discrete (0, Boolean_Type); -- cgit v1.2.3