Under some conditions, use of an implied loop in a WRITE statement causes a C0000005 internal compiler error, with no other information provided. This is for the 17.0.2.187 [IA-32] Visual Fortran compiler. This problem does not occur with the 11.1 version of the compiler. If you are unaware of this problem, let me know and I will send an example.
Mike McCurdy
Hammajang Software