From 6739ef05016a6148f899be092a4e9bb4512d0d78 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 29 Mar 2020 08:28:33 +0200 Subject: synth: fix handling of subtype indication in object aliases for vhdl 2008. Fix #1175 --- src/vhdl/vhdl-annotations.adb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vhdl') 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 => -- cgit v1.2.3