This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43078] gfortran: spurious warning of line truncation at col 72
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2010 16:25:33 -0000
- Subject: [Bug fortran/43078] gfortran: spurious warning of line truncation at col 72
- References: <bug-43078-18789@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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.daniel@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