-
-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Description
When passing an open file to an impure function and trying to read a line of it, the following fail message comes up:
$ nvc -a pkg.vhd test.vhd -e test -r
** Fatal: (init): ENDFILE called on closed file
Function F1 [TEXT return STRING] at C:\...\pkg.vhd:41
Function F1 [STRING return STRING] at C:\...\pkg.vhd:22
Process (init) at C:\...\test.vhd:13
$ nvc -v
nvc 1.16.1 (1.16.1.r0.ge2307876) (Using LLVM 20.1.3)
Copyright (C) 2011-2025 Nick Gasson
This program comes with ABSOLUTELY NO WARRANTY. This is free software, and
you are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
Reproducables;
The same error shows up if the 2 functions were no overloads of one another.
Metadata
Metadata
Assignees
Labels
No labels