aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-07-14 06:17:29 +0200
committerTristan Gingold <tgingold@free.fr>2019-07-14 06:17:29 +0200
commitf0868dcab83c303091a1082d1417a7db64448ee6 (patch)
tree466e150ad080b09e1f64ef6eb31f716797656e51 /src/vhdl
parentec2ea2843bf8099c6d081e84e50d3ed78e37bc56 (diff)
downloadghdl-f0868dcab83c303091a1082d1417a7db64448ee6.tar.gz
ghdl-f0868dcab83c303091a1082d1417a7db64448ee6.tar.bz2
ghdl-f0868dcab83c303091a1082d1417a7db64448ee6.zip
vhdl: set location on reference to the anonymous signal declaration.
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/vhdl-sem.adb1
1 files changed, 1 insertions, 0 deletions
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));