[Bug fortran/42852] gfortran -Wall warns about truncated lines when only a continuation character is truncated
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 1 07:32:00 GMT 2010
------- 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
More information about the Gcc-bugs
mailing list