aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-08 18:38:12 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-08 18:38:12 +0200
commit55e0a382c3fa5a9873249b18a75cd340cf1366f2 (patch)
tree7cb52b4eb6e3a6c5e810a137525b145ff01e6a0d
parent4bc06244b352f0145f9b47579702f2259cbdabfc (diff)
downloadghdl-55e0a382c3fa5a9873249b18a75cd340cf1366f2.tar.gz
ghdl-55e0a382c3fa5a9873249b18a75cd340cf1366f2.tar.bz2
ghdl-55e0a382c3fa5a9873249b18a75cd340cf1366f2.zip
synth: handle subprograms in package body.
-rw-r--r--src/synth/synth-decls.adb5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/synth/synth-decls.adb b/src/synth/synth-decls.adb
index 76a408203..fe5883ac3 100644
--- a/src/synth/synth-decls.adb
+++ b/src/synth/synth-decls.adb
@@ -482,6 +482,11 @@ package body Synth.Decls is
is
Inter : Node;
begin
+ if Is_Second_Subprogram_Specification (Subprg) then
+ -- Already handled.
+ return;
+ end if;
+
Inter := Get_Interface_Declaration_Chain (Subprg);
while Inter /= Null_Node loop
Synth_Declaration_Type (Syn_Inst, Inter);