This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/42852] gfortran -Wall warns about truncated lines when only a continuation character is truncated



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]