From f0868dcab83c303091a1082d1417a7db64448ee6 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 14 Jul 2019 06:17:29 +0200 Subject: vhdl: set location on reference to the anonymous signal declaration. --- src/vhdl/vhdl-sem.adb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vhdl/vhdl-sem.adb b/src/vhdl/vhdl-sem.adb index 99e08d51f..644cab68e 100644 --- a/src/vhdl/vhdl-sem.adb +++ b/src/vhdl/vhdl-sem.adb @@ -481,6 +481,7 @@ package body Vhdl.Sem is -- Return a reference to it. -- FIXME: The referenced name is not a name. Res := Create_Iir (Iir_Kind_Reference_Name); + Location_Copy (Res, Actual); Set_Referenced_Name (Res, Sig); Set_Named_Entity (Res, Sig); Set_Type (Res, Get_Type (Sig)); -- cgit v1.2.3