aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_names.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-06-06 07:59:45 +0200
committerTristan Gingold <tgingold@free.fr>2017-06-06 07:59:45 +0200
commit77f0a1479c06b6193ce9c4e2e2fc04a367847c38 (patch)
tree1258b8aab111dfa1f0546918d238127786ec4145 /src/vhdl/sem_names.adb
parent633bb44c82002738e959133524a6d8ba4afd9a0d (diff)
downloadghdl-77f0a1479c06b6193ce9c4e2e2fc04a367847c38.tar.gz
ghdl-77f0a1479c06b6193ce9c4e2e2fc04a367847c38.tar.bz2
ghdl-77f0a1479c06b6193ce9c4e2e2fc04a367847c38.zip
Correctly reject user attribute of attribute.
Fix #367
Diffstat (limited to 'src/vhdl/sem_names.adb')
-rw-r--r--src/vhdl/sem_names.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb
index 13e96c4e7..7751e8f0b 100644
--- a/src/vhdl/sem_names.adb
+++ b/src/vhdl/sem_names.adb
@@ -2830,6 +2830,10 @@ package body Sem_Names is
Error_Msg_Sem (+Attr, "prefix of user defined attribute cannot be "
& "an anonymous object");
return Error_Mark;
+ when Iir_Kind_Attribute_Declaration =>
+ Error_Msg_Sem (+Attr, "prefix of user defined attribute cannot be "
+ & "an attribute");
+ return Error_Mark;
when Iir_Kinds_Object_Declaration
| Iir_Kind_Type_Declaration
| Iir_Kind_Subtype_Declaration