From 8e23efc43c07a714b4f429be836c86eddf167b4e Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 27 Feb 2021 16:28:53 +0100 Subject: vhdl-sem_expr.adb: improve fix for #1664 --- src/vhdl/vhdl-sem_expr.adb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/vhdl/vhdl-sem_expr.adb b/src/vhdl/vhdl-sem_expr.adb index 8ed0a8c0e..854da50d8 100644 --- a/src/vhdl/vhdl-sem_expr.adb +++ b/src/vhdl/vhdl-sem_expr.adb @@ -5720,14 +5720,11 @@ package body Vhdl.Sem_Expr is -- context including the expression, then the condition operator is -- not applied. - Res := Sem_Expression_Ov (Cond, Null_Iir); + Res := Sem_Expression_Wildcard (Cond, Null_Iir); if Res = Null_Iir then -- Error occurred. return Null_Iir; - elsif Get_Type (Res) = Null_Iir then - Error_Msg_Sem (+Res, "incorrect type for condition"); - return Null_Iir; end if; return Sem_Condition_Pass2 (Res); -- cgit v1.2.3