diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-12-03 18:22:26 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-12-03 18:22:26 +0100 |
commit | d6f609e10715daa1fe2412aa1371dc9357d075fd (patch) | |
tree | 7d5449b3a6e32d34a35cfcc1faa422cc4f078de4 /src/vhdl | |
parent | 51d120d80b381f24fd299868c38ae45eeb304bfc (diff) | |
download | ghdl-d6f609e10715daa1fe2412aa1371dc9357d075fd.tar.gz ghdl-d6f609e10715daa1fe2412aa1371dc9357d075fd.tar.bz2 ghdl-d6f609e10715daa1fe2412aa1371dc9357d075fd.zip |
vhdl-sem.adb: fix incorrect check for conformance rules
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/vhdl-sem.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem.adb b/src/vhdl/vhdl-sem.adb index 12b13a13c..3de7fd78e 100644 --- a/src/vhdl/vhdl-sem.adb +++ b/src/vhdl/vhdl-sem.adb @@ -1443,7 +1443,9 @@ package body Vhdl.Sem is then return False; end if; - if not Are_Trees_Equal (Get_Type (Left), Get_Type (Right)) then + if not Are_Trees_Equal (Get_Subtype_Indication (Left), + Get_Subtype_Indication (Right)) + then return False; end if; El_Left := Get_Default_Value (Left); |