From a8560bb08e6c065871e6e5f5f7825cd1a2db62e4 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 12 Oct 2019 07:08:09 +0200 Subject: vhdl-annotations: handle list of record elements declaration. --- src/vhdl/vhdl-annotations.adb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vhdl/vhdl-annotations.adb b/src/vhdl/vhdl-annotations.adb index b61547018..fb24402c8 100644 --- a/src/vhdl/vhdl-annotations.adb +++ b/src/vhdl/vhdl-annotations.adb @@ -416,8 +416,10 @@ package body Vhdl.Annotations is begin for I in Flist_First .. Flist_Last (List) loop El := Get_Nth_Element (List, I); - Annotate_Anonymous_Type_Definition - (Block_Info, Get_Type (El)); + if Get_Subtype_Indication (El) /= Null_Iir then + Annotate_Anonymous_Type_Definition + (Block_Info, Get_Type (El)); + end if; end loop; end; if Flag_Synthesis then -- cgit v1.2.3