aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-24 06:42:32 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-24 06:43:43 +0200
commit0d427a74341db4b511e472222f9d4ce0f7717a3c (patch)
tree25d8d5b2d0ff71b879a81f3b5f364694f9430223 /src
parent5a57a31b3b85ca3e1d51fbcbb92282aad8d1a7ad (diff)
downloadghdl-0d427a74341db4b511e472222f9d4ce0f7717a3c.tar.gz
ghdl-0d427a74341db4b511e472222f9d4ce0f7717a3c.tar.bz2
ghdl-0d427a74341db4b511e472222f9d4ce0f7717a3c.zip
vhdl/translate: elaborate dependencies of configurations. Fix #984
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/translate/trans-chap1.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/translate/trans-chap1.adb b/src/vhdl/translate/trans-chap1.adb
index 585b81fde..1c1e18a92 100644
--- a/src/vhdl/translate/trans-chap1.adb
+++ b/src/vhdl/translate/trans-chap1.adb
@@ -954,6 +954,10 @@ package body Trans.Chap1 is
Push_Architecture_Scope (Arch, Config_Info.Config_Instance);
if Get_Kind (Config) = Iir_Kind_Configuration_Declaration then
+ -- The configuration may depend on packages. Be sure they are
+ -- elaborated.
+ Chap2.Elab_Dependence (Get_Design_Unit (Config));
+
Open_Temp;
Chap4.Elab_Declaration_Chain (Config, Final);
Close_Temp;