I ran into a peculiar bug with gfortran: program check open( 10, file = 'check.inp', form = 'binary' ) ! Comment end program (the comment starts at column 132, but the problem actually occurs in a long linje with trailing blanks too) The output from the compiler is: check.f90:2.132: ! 1 Error: FORM specifier in OPEN statement at (1) has invalid value 'binary' Note that the offending code is being omitted, while for shorter lines, the code is visible. This was on Windows XP/MingW, with gfortran 4.3.2 (4.3.2-tdm-1 for MingW)
The problem is that the error locus is at the end of the line rather then the end of the non-whitespace characters of the related statement.
The problem here is we don't pass the expression locus to the tag checking routine so the best it can do is the end of the line. To fix this is fairly mechanical, but affects many places.
*** This bug has been marked as a duplicate of 29819 ***