diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-10-24 06:42:32 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-10-24 06:43:43 +0200 |
commit | 0d427a74341db4b511e472222f9d4ce0f7717a3c (patch) | |
tree | 25d8d5b2d0ff71b879a81f3b5f364694f9430223 /src/vhdl/translate | |
parent | 5a57a31b3b85ca3e1d51fbcbb92282aad8d1a7ad (diff) | |
download | ghdl-0d427a74341db4b511e472222f9d4ce0f7717a3c.tar.gz ghdl-0d427a74341db4b511e472222f9d4ce0f7717a3c.tar.bz2 ghdl-0d427a74341db4b511e472222f9d4ce0f7717a3c.zip |
vhdl/translate: elaborate dependencies of configurations. Fix #984
Diffstat (limited to 'src/vhdl/translate')
-rw-r--r-- | src/vhdl/translate/trans-chap1.adb | 4 |
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; |