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: "patrick dot wallace at stfc dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2010 08:49:14 -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 #3 from patrick dot wallace at stfc dot ac dot uk 2010-02-16 08:49 -------
Subject: RE: gfortran: spurious warning of line truncation at col 72
> Works for me with both 4.4.2 and trunk.
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 guess gfortran is within its rights to work this way, and only
accept Unix line endings. But I would argue that this is unhelpful,
and that it would be better to make gfortran detect the condition
and deal with it sympathetically.
Patrick Wallace
____________________________________________________________________
Space Science & Technology Department +44-1235-445372 tel
STFC / Rutherford Appleton Laboratory +44-1235-446362 fax
Harwell Science and Innovation Campus ptw@star.rl.ac.uk
Didcot, Oxfordshire, OX11 0QX, UK Patrick.Wallace@stfc.ac.uk
____________________________________________________________________
--
Scanned by iCritical.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43078