aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/elab-vhdl_insts.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-04-13 21:19:46 +0200
committerTristan Gingold <tgingold@free.fr>2022-04-13 21:19:46 +0200
commit4f8c339981dc50e7e896a12df8b9cef9705c26af (patch)
treed5c4dfaed288d1fd397c2b34f5913cdaf0f81e43 /src/synth/elab-vhdl_insts.adb
parent057fcd45c357f6933de646a7086a44b190efee6f (diff)
downloadghdl-4f8c339981dc50e7e896a12df8b9cef9705c26af.tar.gz
ghdl-4f8c339981dc50e7e896a12df8b9cef9705c26af.tar.bz2
ghdl-4f8c339981dc50e7e896a12df8b9cef9705c26af.zip
synth: handle type declarations in vunit. Fix #2034
Diffstat (limited to 'src/synth/elab-vhdl_insts.adb')
-rw-r--r--src/synth/elab-vhdl_insts.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/synth/elab-vhdl_insts.adb b/src/synth/elab-vhdl_insts.adb
index a16b0cdf2..3816cb9a4 100644
--- a/src/synth/elab-vhdl_insts.adb
+++ b/src/synth/elab-vhdl_insts.adb
@@ -412,7 +412,9 @@ package body Elab.Vhdl_Insts is
| Iir_Kind_Attribute_Specification
| Iir_Kind_Object_Alias_Declaration
| Iir_Kind_Non_Object_Alias_Declaration
- | Iir_Kind_Subtype_Declaration =>
+ | Iir_Kind_Subtype_Declaration
+ | Iir_Kind_Type_Declaration
+ | Iir_Kind_Anonymous_Type_Declaration =>
Elab_Declaration (Unit_Inst, Item, Last_Type);
when Iir_Kinds_Concurrent_Signal_Assignment
| Iir_Kinds_Process_Statement