This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/14038] New: [gfortan] Mangled character in Hollerith
- From: "bdavis9659 at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Feb 2004 02:35:11 -0000
- Subject: [Bug fortran/14038] New: [gfortan] Mangled character in Hollerith
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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