diff options
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/vhdl-sem_names.adb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb index 034a9f5f3..63388c777 100644 --- a/src/vhdl/vhdl-sem_names.adb +++ b/src/vhdl/vhdl-sem_names.adb @@ -2963,8 +2963,9 @@ package body Vhdl.Sem_Names is Error_Msg_Sem (+Attr, "prefix of user defined attribute cannot be " & "an attribute"); return Error_Mark; - when Iir_Kind_Function_Call => - Error_Msg_Sem (+Attr, "invalid prefix or user defined attribute"); + when Iir_Kind_Function_Call + | Iir_Kind_Type_Conversion => + Error_Msg_Sem (+Attr, "invalid prefix for user defined attribute"); return Error_Mark; when Iir_Kinds_Object_Declaration | Iir_Kind_Type_Declaration |