From 12f428f27ba4bcec645b9f904aff8b5632420ad4 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 20 Jun 2022 20:55:25 +0200 Subject: vhdl-sem.adb: avoid a crash on conformance error. Fix #2103 --- src/vhdl/vhdl-sem.adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vhdl/vhdl-sem.adb b/src/vhdl/vhdl-sem.adb index 924ad9429..0de4c2c7d 100644 --- a/src/vhdl/vhdl-sem.adb +++ b/src/vhdl/vhdl-sem.adb @@ -1393,8 +1393,8 @@ package body Vhdl.Sem is -- meaning of the simple name is given by the same declaration. if Get_Kind (Left) in Iir_Kinds_Denoting_Name then if Get_Kind (Right) in Iir_Kinds_Denoting_Name then - return Are_Trees_Equal (Get_Named_Entity (Left), - Get_Named_Entity (Right)); + return Get_Identifier (Left) = Get_Identifier (Right) + and then Get_Named_Entity (Left) = Get_Named_Entity (Right); else return False; end if; -- cgit v1.2.3