aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem_specs.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-30 18:39:34 +0100
committerTristan Gingold <tgingold@free.fr>2019-10-30 18:39:34 +0100
commit5460489790f0b2934b1b61c8610b798ab7a47d4d (patch)
treef0ad037c34e6e8ac53722c5236ca3c81b8c02482 /src/vhdl/vhdl-sem_specs.adb
parentbeadc8e7be3d5d58f6b76d405673642c58b23a30 (diff)
downloadghdl-5460489790f0b2934b1b61c8610b798ab7a47d4d.tar.gz
ghdl-5460489790f0b2934b1b61c8610b798ab7a47d4d.tar.bz2
ghdl-5460489790f0b2934b1b61c8610b798ab7a47d4d.zip
vhdl: allow attributes in vunit declarations.
Diffstat (limited to 'src/vhdl/vhdl-sem_specs.adb')
-rw-r--r--src/vhdl/vhdl-sem_specs.adb2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_specs.adb b/src/vhdl/vhdl-sem_specs.adb
index 77619b3ce..b5860ae9f 100644
--- a/src/vhdl/vhdl-sem_specs.adb
+++ b/src/vhdl/vhdl-sem_specs.adb
@@ -654,6 +654,8 @@ package body Vhdl.Sem_Specs is
| Iir_Kind_Procedure_Body =>
Sem_Named_Entity_Chain (Get_Declaration_Chain (Scope));
Sem_Named_Entity_Chain (Get_Sequential_Statement_Chain (Scope));
+ when Iir_Kind_Vunit_Declaration =>
+ Sem_Named_Entity_Chain (Get_Vunit_Item_Chain (Scope));
when others =>
Error_Kind ("sem_named_entities", Scope);
end case;