------- Comment #7 from burnus at gcc dot gnu dot org 2010-02-16 16:25 ------- (In reply to comment #3) > Mystery solved. It is to do with line endings. When gfortran sees > a file with DOS line endings it interprets the CR and LF as separate > characters. This is why demonstrating the effect is so slippery.
I think that has been fixed in GCC/gfortran 4.4 as I found the following in the Changelog - it also matches my testing with 4.3 and 4.4/4.5. 2009-02-19 Daniel Franke <franke.dan...@gmail.com> * scanner.c (load_line): At end of line, skip '\r' without setting the truncation flag. which matches what I currently see in the code (the "i++" etc. part is jumped over if the character is "\r"). Thus: Can you re-try with 4.4/4.5 and see whether it is really fixed? I think we can close the problem report as the fix will not be backported to the 4.3 branch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43078