This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/42852] gfortran -Wall warns about truncated lines when only a continuation character is truncated
- 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: 1 Mar 2010 07:31:39 -0000
- Subject: [Bug fortran/42852] gfortran -Wall warns about truncated lines when only a continuation character is truncated
- References: <bug-42852-16957@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from burnus at gcc dot gnu dot org 2010-03-01 07:31 -------
(In reply to comment #5)
> Created an attachment (id=19993)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19993&action=view) [edit]
> A suggested patch
>
> This patch does the trick. I think it is sensible to not warn on leading
> spaces, a comment, or continuation &.
I agree, however, I would expect still a warning for
something & dhjgjl
where "&" is e.g. in column 73.
* * *
Something related: In free format, there is no trunction warning for
print *, 'Hello ' <many, many spaces> // 'world'
even though only "Hello" is printed. That is a 4.5 regression.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42852