erroneous warning about line truncation
Hans Horn
hannes@2horns.com
Mon Nov 2 17:10:00 GMT 2009
Folks,
I get warnings about line truncation on fixed-form (f77) code when I
have inline comments starting at column 73 and beyond.
I mocked up this little piece of silly code to demonstrate:
subroutine foo
IMPLICIT NONE
Integer stupid_dummy_variable1 ! stupid_dummy_variable1
Integer stupid_dummy_variable2
! stupid_dummy_variable2
Integer stupid_dummy_variable3
! stupid_dummy_variable3
write(*,*) stupid_dummy_variable1,
& stupid_dummy_variable2,
& stupid_dummy_variable3
end
Compiling it gives:
$ gfc -Wall -c foo.f
foo.f:5.72:
Integer stupid_dummy_variable3
1
Warning: Line truncated at (1)
H.
More information about the Fortran
mailing list