This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/14038] New: [gfortan] Mangled character in Hollerith


This was found while comparing the output files created when running the NIST
conformance tests between g77 and gfortran. 


Code to duplicate the problem:

 100  FORMAT (1H ,10X,38HFOR OFFICIAL USE ONLY - COPYRIGHT 1978)
      WRITE(6,100)
      END

$/usr/local/bin/gfortran -static freg1.f
$ ./a.out
           FOR OFFICIAL USE ONLY - COPYRIGH 1978)

What it should look like:
$ g77 freg1.f
$ ./a.out
           FOR OFFICIAL USE ONLY - COPYRIGHT 1978


Notice the trailing ")".

The version of g95 is:  

GNU Fortran 95 (GCC 3.5-tree-ssa 20040205 (merged 20040126))

-- 
           Summary: [gfortan] Mangled character in Hollerith
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        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=14038


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