diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-09-13 21:58:19 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-09-14 04:16:52 +0200 |
commit | d6421b108d0b428fa47ec2b9e89053faf0dc7d60 (patch) | |
tree | 3fb89e1cc0bf7a37592f33df371c2115ebae25c5 /src/vhdl/translate | |
parent | 24f3cf3405612d10861d5819822dd9d9d95b1126 (diff) | |
download | ghdl-d6421b108d0b428fa47ec2b9e89053faf0dc7d60.tar.gz ghdl-d6421b108d0b428fa47ec2b9e89053faf0dc7d60.tar.bz2 ghdl-d6421b108d0b428fa47ec2b9e89053faf0dc7d60.zip |
trans-chap3: improve comment
Diffstat (limited to 'src/vhdl/translate')
-rw-r--r-- | src/vhdl/translate/trans-chap3.adb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vhdl/translate/trans-chap3.adb b/src/vhdl/translate/trans-chap3.adb index f09601066..e1bb61af6 100644 --- a/src/vhdl/translate/trans-chap3.adb +++ b/src/vhdl/translate/trans-chap3.adb @@ -1180,10 +1180,10 @@ package body Trans.Chap3 is if Info.Type_Locally_Constrained then Arr := Arr_Def; else - -- If the element has been constrained, there is no ortho array - -- with the constrained element. So use the base type as a fall - -- back (if the element cannot be constrained, it is the same as the - -- base type element). + -- When an element is constrained, no ortho array is created with + -- the constrained element (unless it is statically constrained). + -- So use the base type as a fall back (if the element cannot be + -- constrained, it is the same as the base type element). Arr := Get_Base_Type (Arr_Def); end if; return Get_Element_Subtype (Arr); |