From c6ea9fa41ffa9cc0294bde8da14739a8eb7ac93d Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 23 Aug 2018 02:00:16 +0200 Subject: user_attribute: handle invalid function call as prefix. Fix #636 --- src/vhdl/sem_names.adb | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3