The following code goes wrong with gfortran -malign-double (but is OK without
malign-double)

PROGRAM test
 CHARACTER(80) :: buffer
 READ (*,1) buffer
1 FORMAT(a)
END PROGRAM test

$ gfortran -v
Using built-in specs.
Target: i386-apple-darwin8.9.1
Configured with: ../gcc-4.3-20070316/configure --enable-languages=fortran,c++
Thread model: posix
gcc version 4.3.0 20070316 (experimental)
$ uname -a
Darwin m038.chem.cf.ac.uk 8.9.1 Darwin Kernel Version 8.9.1: Thu Feb 22
20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386 i386 i386
$ gfortran -malign-double format.f90
$ echo xxx | ./a.out
At line 3 of file format.f90
Fortran runtime error: Missing initial left parenthesis in format
H       å? 
$ gfortran  format.f90
$ echo xxx | ./a.out


-- 
           Summary: -malign-double trashes fortran format
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: KnowlesPJ at Cardiff dot ac dot uk
 GCC build triplet: i386-apple-darwin8.9.1
  GCC host triplet: i386-apple-darwin8.9.1
GCC target triplet: i386-apple-darwin8.9.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31696

Reply via email to