diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-06-20 20:55:25 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-06-21 06:33:24 +0200 |
commit | 12f428f27ba4bcec645b9f904aff8b5632420ad4 (patch) | |
tree | 4c9b827ea1971a9625735d7f625ee9ec6f4272cc | |
parent | b69619941e07556e965a1d972c694ec94a095e50 (diff) | |
download | ghdl-12f428f27ba4bcec645b9f904aff8b5632420ad4.tar.gz ghdl-12f428f27ba4bcec645b9f904aff8b5632420ad4.tar.bz2 ghdl-12f428f27ba4bcec645b9f904aff8b5632420ad4.zip |
vhdl-sem.adb: avoid a crash on conformance error. Fix #2103
-rw-r--r-- | src/vhdl/vhdl-sem.adb | 4 |
1 files 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; |