This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
erroneous warning about line truncation
- From: Hans Horn <hannes at 2horns dot com>
- To: fortran at gcc dot gnu dot org
- Date: Mon, 02 Nov 2009 09:03:10 -0800
- Subject: erroneous warning about line truncation
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.