diff options
-rw-r--r-- | src/vhdl/sem_names.adb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb index 13e96c4e7..7751e8f0b 100644 --- a/src/vhdl/sem_names.adb +++ b/src/vhdl/sem_names.adb @@ -2830,6 +2830,10 @@ package body Sem_Names is Error_Msg_Sem (+Attr, "prefix of user defined attribute cannot be " & "an anonymous object"); return Error_Mark; + when Iir_Kind_Attribute_Declaration => + Error_Msg_Sem (+Attr, "prefix of user defined attribute cannot be " + & "an attribute"); + return Error_Mark; when Iir_Kinds_Object_Declaration | Iir_Kind_Type_Declaration | Iir_Kind_Subtype_Declaration |