diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-03-29 08:28:33 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-03-29 08:28:33 +0200 |
commit | 6739ef05016a6148f899be092a4e9bb4512d0d78 (patch) | |
tree | eea2dcd35278eb8c6cc0602b1aa972eb8da41072 /src/vhdl | |
parent | 79267f4dc60753aac17f2192a9f6eee5e2ef7b75 (diff) | |
download | ghdl-6739ef05016a6148f899be092a4e9bb4512d0d78.tar.gz ghdl-6739ef05016a6148f899be092a4e9bb4512d0d78.tar.bz2 ghdl-6739ef05016a6148f899be092a4e9bb4512d0d78.zip |
synth: fix handling of subtype indication in object aliases for vhdl 2008.
Fix #1175
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/vhdl-annotations.adb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-annotations.adb b/src/vhdl/vhdl-annotations.adb index aef7cafc0..48ec93fc3 100644 --- a/src/vhdl/vhdl-annotations.adb +++ b/src/vhdl/vhdl-annotations.adb @@ -799,7 +799,10 @@ package body Vhdl.Annotations is Annotate_Subprogram_Body (Block_Info, Decl); when Iir_Kind_Object_Alias_Declaration => - Annotate_Anonymous_Type_Definition (Block_Info, Get_Type (Decl)); + if Get_Subtype_Indication (Decl) /= Null_Iir then + Annotate_Anonymous_Type_Definition + (Block_Info, Get_Type (Decl)); + end if; Create_Object_Info (Block_Info, Decl); when Iir_Kind_Non_Object_Alias_Declaration => |