aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-26 21:53:52 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-26 21:55:48 +0100
commit7c2d3d4a419be583e46f0c8a84c26a86b696da3a (patch)
tree99fbfb06ee526b9ed6664ac21dd6da457345ebb7
parentd82550423e6546840e514512dfaab1136eb32397 (diff)
downloadghdl-7c2d3d4a419be583e46f0c8a84c26a86b696da3a.tar.gz
ghdl-7c2d3d4a419be583e46f0c8a84c26a86b696da3a.tar.bz2
ghdl-7c2d3d4a419be583e46f0c8a84c26a86b696da3a.zip
vhdl-sem_names: adjust for for element attribute
-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 b52e7e7ae..8a742767a 100644
--- a/src/vhdl/vhdl-sem_names.adb
+++ b/src/vhdl/vhdl-sem_names.adb
@@ -3767,6 +3767,7 @@ package body Vhdl.Sem_Names is
-- If the prefix is an object, we know its type is constrained.
if not Is_Prefix_Object
and then not Get_Index_Constraint_Flag (Prefix_Type)
+ and then Get_Identifier (Attr) /= Name_Element
then
Error_Msg_Sem (+Attr, "prefix type is not constrained");
-- We continue using the unconstrained array type.