aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-04-10 21:07:28 +0200
committerTristan Gingold <tgingold@free.fr>2021-04-11 08:58:00 +0200
commit2f908c242e41693b466d6dbd45a60c063523f661 (patch)
treeb058923402a751ed96814cc7c86b5a587fb516d7 /src
parentf41b7c02acd9defa943fd7492ca9b97a8a7908b5 (diff)
downloadghdl-2f908c242e41693b466d6dbd45a60c063523f661.tar.gz
ghdl-2f908c242e41693b466d6dbd45a60c063523f661.tar.bz2
ghdl-2f908c242e41693b466d6dbd45a60c063523f661.zip
vhdl-sem_names.adb: fix check for object prefix of subtype attribute. Fix #1717
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/vhdl-sem_names.adb4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb
index 4548c8175..cb03d4690 100644
--- a/src/vhdl/vhdl-sem_names.adb
+++ b/src/vhdl/vhdl-sem_names.adb
@@ -3708,9 +3708,7 @@ package body Vhdl.Sem_Names is
-- LRM08 16.2 Predefined attributes
-- Prefix: Any prefix O that is appropriate for an object, or an alias
-- thereof
- if (Get_Kind (Get_Base_Name (Prefix_Name))
- not in Iir_Kinds_Object_Declaration)
- then
+ if not Is_Object_Name (Prefix_Name) then
Error_Msg_Sem (+Attr, "prefix must denote an object");
return Error_Mark;
end if;