diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-04-22 18:52:52 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-04-22 21:31:26 +0200 |
commit | b7992d8601cac632b75897182fb529c9409105ea (patch) | |
tree | 7cedef452e230409016f786860c8a3f7bce4dcab /src/ghdldrv/ghdlprint.adb | |
parent | d78d7477758f7212890daabcb53b9e2852a3f41a (diff) | |
download | ghdl-b7992d8601cac632b75897182fb529c9409105ea.tar.gz ghdl-b7992d8601cac632b75897182fb529c9409105ea.tar.bz2 ghdl-b7992d8601cac632b75897182fb529c9409105ea.zip |
find_top_entity: add location to report errors. Fix #1254
Diffstat (limited to 'src/ghdldrv/ghdlprint.adb')
-rw-r--r-- | src/ghdldrv/ghdlprint.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ghdldrv/ghdlprint.adb b/src/ghdldrv/ghdlprint.adb index ebe9366f8..58186948c 100644 --- a/src/ghdldrv/ghdlprint.adb +++ b/src/ghdldrv/ghdlprint.adb @@ -1379,7 +1379,7 @@ package body Ghdlprint is | Date_Disk => raise Internal_Error; when Date_Parse => - Vhdl.Sem_Lib.Load_Design_Unit (Unit, Unit); + Vhdl.Sem_Lib.Load_Design_Unit (Unit, Get_Location (Unit)); if Errorout.Nbr_Errors /= 0 then raise Compilation_Error; end if; |