aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-04-16 20:25:35 +0200
committerTristan Gingold <tgingold@free.fr>2021-04-16 20:25:35 +0200
commit1e32a22c5ebbb52402aa1e45734bd9ec8f206c15 (patch)
tree55a7d31b5dc2083c6716bfdddc1f1fedec8a034f /src/vhdl
parentc421a1adec85343c7e855dc584743fbb95274be5 (diff)
downloadghdl-1e32a22c5ebbb52402aa1e45734bd9ec8f206c15.tar.gz
ghdl-1e32a22c5ebbb52402aa1e45734bd9ec8f206c15.tar.bz2
ghdl-1e32a22c5ebbb52402aa1e45734bd9ec8f206c15.zip
vhdl-sem_names: avoid a crash for invalid user attribute prefix. Fix #1727
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/vhdl-sem_names.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb
index cb03d4690..ab4451d77 100644
--- a/src/vhdl/vhdl-sem_names.adb
+++ b/src/vhdl/vhdl-sem_names.adb
@@ -3322,7 +3322,8 @@ package body Vhdl.Sem_Names is
& "an attribute");
return Error_Mark;
when Iir_Kind_Function_Call
- | Iir_Kind_Type_Conversion =>
+ | Iir_Kind_Type_Conversion
+ | Iir_Kinds_Attribute =>
Error_Msg_Sem (+Attr, "invalid prefix for user defined attribute");
return Error_Mark;
when Iir_Kinds_Object_Declaration