This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25631] New: tl format specifier not working correctly
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jan 2006 06:52:43 -0000
- Subject: [Bug fortran/25631] New: tl format specifier not working correctly
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
While studying some test cases for pr24268 I discovered this:
program tl
real x
character*13 line
x = 12.34
write(line,20) x
20 format(tr2,tl2,g11.4)
print *, "123456789012345"
print *, ">",line,"<"
end
The tl2 is not getting processed so the numbers printed within the field are
shifted to the right by two spaces.
$ g77 fmt_tl.f
$ ./a.out
123456789012345
> 12.34 <
$ gfc fmt_tl.f
$ ./a.out
123456789012345
> 12.34 <
--
Summary: tl format specifier not working correctly
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jvdelisle at gcc dot gnu dot org
GCC host triplet: i696-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25631