aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/vhdl-sem_names.adb3
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;