This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: erroneous warning about line truncation


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]