aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/elab-vhdl_types.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-12-15 08:18:10 +0100
committerTristan Gingold <tgingold@free.fr>2021-12-15 08:18:10 +0100
commit9df3cb21ad765f38561fff0a568ce94359d4d977 (patch)
tree162232a463e986d01e65fc476c40093596b84e09 /src/synth/elab-vhdl_types.adb
parentc661e58db492f14b22e2ab59e58a8abde6e74c10 (diff)
downloadghdl-9df3cb21ad765f38561fff0a568ce94359d4d977.tar.gz
ghdl-9df3cb21ad765f38561fff0a568ce94359d4d977.tar.bz2
ghdl-9df3cb21ad765f38561fff0a568ce94359d4d977.zip
synth: handle interface type in generics. For #412
Diffstat (limited to 'src/synth/elab-vhdl_types.adb')
-rw-r--r--src/synth/elab-vhdl_types.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/synth/elab-vhdl_types.adb b/src/synth/elab-vhdl_types.adb
index 300f57427..7d726d154 100644
--- a/src/synth/elab-vhdl_types.adb
+++ b/src/synth/elab-vhdl_types.adb
@@ -530,7 +530,9 @@ package body Elab.Vhdl_Types is
when Iir_Kinds_Denoting_Name =>
Atype := Get_Named_Entity (Atype);
when Iir_Kind_Subtype_Declaration
- | Iir_Kind_Type_Declaration =>
+ | Iir_Kind_Type_Declaration
+ | Iir_Kind_Subtype_Attribute
+ | Iir_Kind_Interface_Type_Declaration =>
-- Type already declared, so already handled.
return Null_Node;
when Iir_Kind_Array_Subtype_Definition