- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am working on a fixed format Fortran legacy program and found a bug regarding the warnings about line truncation.
If you compile the following program using:
ifort -warn all,error source_truncation.f
program source_truncation integer :: i * This comment exceed column 72 and does not lead to an error. pewpepepwwepwepwe ! This comment exceeds column 72 and does lead to an error. pewpepepwwepwe i = 1 + 2 write(*, *) i end program
you will get an error only for the second comment.
It is a bit inconsistent, that a comment, as defined by a character in the first column, and a comment, as defined by exclamation marks, are treated differently.
The tested compilers are:
ifort (IFORT) 18.0.1 20171018
ifort (IFORT) 16.0.1 20151021
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page