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/39229] No warning of truncated lines if a continuation line follows



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


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