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