This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/39229] No warning of truncated lines if a continuation line follows
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2009 16:46:30 -0000
- Subject: [Bug fortran/39229] No warning of truncated lines if a continuation line follows
- References: <bug-39229-13648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2009-07-25 16:46 -------
There are two things going on here. First, because of the continuation, the
scanner actually combines the two lines into one line. Secondly, we have code
that deliberately clears the truncation flag because it was considered a
nuisance to warn on anything after a comment.
/* Avoid truncation warnings for comment ending lines. */
gfc_current_locus.lb->truncated = 0;
I am inclined to leave this as is because it is a common practice to use
positions 73 thru 80 for indexing in legacy fixed form code. (Remember those
punch cards!)
Changing to won't fix. If someone feels strongly about this otherwise, just
let me know. It is not difficult to change.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39229