diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-06-20 19:01:41 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-06-20 19:01:41 +0200 |
commit | eb0740a71c837cf9280c193022dcc2ceeeb08f34 (patch) | |
tree | ad12c9f1d4bd23ff650e4fb5fb4f28d013076493 /src/vhdl | |
parent | 79e840fc4061b8483c1e580b98e18ab31869b063 (diff) | |
download | ghdl-eb0740a71c837cf9280c193022dcc2ceeeb08f34.tar.gz ghdl-eb0740a71c837cf9280c193022dcc2ceeeb08f34.tar.bz2 ghdl-eb0740a71c837cf9280c193022dcc2ceeeb08f34.zip |
vhdl-sem_names: do not crash on user attribute on
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/vhdl-sem_names.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb index cc731263e..b11fe891c 100644 --- a/src/vhdl/vhdl-sem_names.adb +++ b/src/vhdl/vhdl-sem_names.adb @@ -2932,7 +2932,8 @@ package body Vhdl.Sem_Names is when Iir_Kind_Selected_By_All_Name | Iir_Kind_Selected_Name | Iir_Kind_Indexed_Name - | Iir_Kind_Slice_Name => + | Iir_Kind_Slice_Name + | Iir_Kind_Selected_Element => Error_Msg_Sem (+Attr, "prefix of user defined attribute cannot be " & "an object subelement"); return Error_Mark; |