aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem_names.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-06-25 18:40:22 +0200
committerTristan Gingold <tgingold@free.fr>2020-06-25 18:40:22 +0200
commite49f709cab51d8f1d0b4a11f93ed383dce8392ec (patch)
treea0f429e8c6709b959b7d2aec2329f9c509aebf93 /src/vhdl/vhdl-sem_names.adb
parent850a99e8d49d910d1afb86d954f7145a31c657ca (diff)
downloadghdl-e49f709cab51d8f1d0b4a11f93ed383dce8392ec.tar.gz
ghdl-e49f709cab51d8f1d0b4a11f93ed383dce8392ec.tar.bz2
ghdl-e49f709cab51d8f1d0b4a11f93ed383dce8392ec.zip
vhdl: add missing check_read. Fix #1381
Diffstat (limited to 'src/vhdl/vhdl-sem_names.adb')
-rw-r--r--src/vhdl/vhdl-sem_names.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb
index 6e7d1e11d..107bb46cb 100644
--- a/src/vhdl/vhdl-sem_names.adb
+++ b/src/vhdl/vhdl-sem_names.adb
@@ -652,6 +652,7 @@ package body Vhdl.Sem_Names is
Index := Sem_Expression (Index, Get_Base_Type (Index_Subtype));
end if;
if Index /= Null_Iir then
+ Check_Read (Index);
if Get_Expr_Staticness (Index) = Locally
and then Get_Type_Staticness (Index_Subtype) = Locally
then