diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-04-10 21:07:28 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-04-11 08:58:00 +0200 |
commit | 2f908c242e41693b466d6dbd45a60c063523f661 (patch) | |
tree | b058923402a751ed96814cc7c86b5a587fb516d7 /src/vhdl/vhdl-sem_names.adb | |
parent | f41b7c02acd9defa943fd7492ca9b97a8a7908b5 (diff) | |
download | ghdl-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/vhdl/vhdl-sem_names.adb')
-rw-r--r-- | src/vhdl/vhdl-sem_names.adb | 4 |
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; |