aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vhdl/sem_names.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb
index a466bfc53..b6150b8bb 100644
--- a/src/vhdl/sem_names.adb
+++ b/src/vhdl/sem_names.adb
@@ -2919,6 +2919,9 @@ package body 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");
+ return Error_Mark;
when Iir_Kinds_Object_Declaration
| Iir_Kind_Type_Declaration
| Iir_Kind_Subtype_Declaration