erroneous warning about line truncation
Hans Horn
hannes@2horns.com
Mon Nov 2 17:11:00 GMT 2009
Hans Horn wrote:
> 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.
>
Forgot: it's gfortran v4.5 I'm using....
More information about the Fortran
mailing list