User account creation filtered due to spam.

Bug 20086 - gfortran print routine has problem with the character 'h'
Summary: gfortran print routine has problem with the character 'h'
Alias: None
Product: gcc
Classification: Unclassified
Component: libfortran (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
Keywords: patch
Depends on:
Blocks: 19292
  Show dependency treegraph
Reported: 2005-02-19 18:08 UTC by Dale Ranta
Modified: 2005-02-22 04:02 UTC (History)
1 user (show)

See Also:
Host: powerpc-apple-darwin7.8.0
Known to work:
Known to fail:
Last reconfirmed: 2005-02-19 18:15:51


Note You need to log in before you can comment on or make changes to this bug.
Description Dale Ranta 2005-02-19 18:08:05 UTC
On the Macintosh, the gfortran print routine drops the character follow an 'h'
in an output string. This happens in hundreds of cases in my program's output.
Here is a simple example -

[dir:~/tests/gfortran] dir% gfortran -o print print.f
[dir:~/tests/gfortran] dir% print
  stiffness reformed for hllo hllo)
  stiffness reformed for ths hghstep)
[dir:~/tests/gfortran] dir% cat print.f
      program main

 2070  format (2x,37hstiffness reformed for this high step)
 2090  format (2x,34hstiffness reformed for hello hello)

Comment 1 Andrew Pinski 2005-02-19 18:15:51 UTC
Confirmed, I really thought I saw this before.
Comment 2 Bud Davis 2005-02-19 21:58:27 UTC
patch here:
Comment 3 CVS Commits 2005-02-22 03:26:33 UTC
Subject: Bug 20086

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	2005-02-22 03:26:26

Modified files:
	gcc/testsuite  : ChangeLog 
	libgfortran    : ChangeLog 
	libgfortran/io : transfer.c 
Added files:
	gcc/testsuite/gfortran.dg: pr20086.f90 

Log message:
	2004-02-21  Bud Davis  <>
	PR fortran/20086
	* io/transfer.c (write_constant_string): accept an 'h' as
	the start of a hollerith format string.
	2005-02-21  Bud Davis  <>
	PR fortran/20086
	* gfortran.dg/pr20086.f90: New test.


Comment 4 Andrew Pinski 2005-02-22 04:02:35 UTC
Fixed, thanks for your report (and hopefully the other ones will be looked at very soon).