[Bug libfortran/15113] New: [gfortran] formatted reads with A format larger than destination are wrong

bdavis9659 at comcast dot net gcc-bugzilla@gcc.gnu.org
Sat Apr 24 11:56:00 GMT 2004


$ cat a.f
       character*16 C
       character*4 D
       data C / 'ABCDEFGHIJKLMNOP'/
       read(C,'(A7)')D
       print*,D
       end
        
$ gfortran -g -static a.f
$ ./a.out
ABCD
$ g77 a.f
$ ./a.out
 DEFG
[bdavis@localhost fm411]$ gfortran --version
GNU Fortran 95 (GCC 3.5-tree-ssa 20040424 (merged 20040414))

-- 
           Summary: [gfortran] formatted reads with A format larger than
                    destination are wrong
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bdavis9659 at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list