diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-09-04 07:34:26 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-09-04 07:34:26 +0200 |
commit | 878146e13217b33c662cf5637bf10102ab2725b3 (patch) | |
tree | d47cfeae8a359cc876b61ad330b127930dfe7244 /src/vhdl | |
parent | 4cb565baea6e93f804bef253200f0872428a3daa (diff) | |
download | ghdl-878146e13217b33c662cf5637bf10102ab2725b3.tar.gz ghdl-878146e13217b33c662cf5637bf10102ab2725b3.tar.bz2 ghdl-878146e13217b33c662cf5637bf10102ab2725b3.zip |
vhdl: do not crash on attribute with a type conversion prefix.
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 |