From 0d427a74341db4b511e472222f9d4ce0f7717a3c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 24 Oct 2019 06:42:32 +0200 Subject: vhdl/translate: elaborate dependencies of configurations. Fix #984 --- src/vhdl/translate/trans-chap1.adb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3