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]

fixed-form comments?


I get the following warning with gfortran.

asterix:/home/balay/junk>cat xx.f
!      an extremely long comment exceeding the default 72 char fixed format limit
        program main
        write (*,*) 'hello'
        end
asterix:/home/balay/junk>gfortran -Wall xx.f
Warning: xx.f:1: Line is being truncated
asterix:/home/balay/junk>

Is this expected behavior? 

I would expect - that since this is a comment line - there sholdn't be
any warning. [fixed form says - 72-80+ chars are comment chars anyway]

Thanks,
Satish

-------
asterix:/home/balay/junk>gfortran -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --with-gxx-include-dir=/usr/include/c++/3.4.3 --enable-languages=c,c++,f95 --disable-libgcj --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.0 20050314 (Red Hat 4.0.0-0.34.fc3)
asterix:/home/balay/junk>


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