diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-01-16 18:31:00 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-01-16 18:31:00 +0100 |
commit | ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b (patch) | |
tree | f0c4a3b49e7743e89029a802b952105a076ef6cd /src/vhdl | |
parent | 3f1b94705e7275aebb9ab64b36b69c32cc3372ed (diff) | |
download | ghdl-ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b.tar.gz ghdl-ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b.tar.bz2 ghdl-ee8fdad2bd5d1c18958a89f2f16ebce22f4b858b.zip |
synth: handle deferred constants. Fix #1096
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/vhdl-annotations.adb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-annotations.adb b/src/vhdl/vhdl-annotations.adb index 6a4591430..cf7659a22 100644 --- a/src/vhdl/vhdl-annotations.adb +++ b/src/vhdl/vhdl-annotations.adb @@ -756,6 +756,9 @@ package body Vhdl.Annotations is -- declaration. Annotate_Declaration_Type (Block_Info, Decl); Create_Object_Info (Block_Info, Decl); + elsif Flag_Synthesis then + -- Always create the slot for the subtype. + Annotate_Declaration_Type (Block_Info, Decl); end if; when Iir_Kind_File_Declaration => |