------- Comment #26 from fxcoudert at gcc dot gnu dot org 2008-02-08 14:39 ------- (In reply to comment #25) > With external units we have a treap structure which > holds pointers to the unit structures so that we reuse them as needed.
I haven't looked at the source code, but I can assure you that the following code clearly shows on Windows that we leak handles for external units. It is fact. character(len=1) :: string do open(10,file="foo",status="replace") write(10,'()') close(10) end do end Compile it, run it with Task manager open, and see handle count increase. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35063