This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/48684] Incorrect field alignment with Gw.dEe descriptor
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Apr 2011 21:28:07 +0000
- Subject: [Bug libfortran/48684] Incorrect field alignment with Gw.dEe descriptor
- Auto-submitted: auto-generated
- References: <bug-48684-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48684
--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-04-23 21:27:22 UTC ---
lets expand the test case just a little:
print "(a)", "12345678901234567890"
print "(g15.3e5)", 0.1d0
print "(g15.3e5)", 0.1d1
print "(g15.3e5)", 0.1d2
print "(g15.3e5)", 0.1d3
print "(g15.3e5)", 0.1d4
print "(g15.3e5)", 0.1d5
print "(g15.3e5)", 0.1d6
print "(g15.3e5)", 0.1d7
print "(g15.3e5)", 0.1d8
print "(g15.3e5)", 0.1d9
print "(g15.3e5)", 0.1d10
print "(g15.3e5)", 0.1d11
print "(g15.3e5)", 0.1d12
end
Unpatched gfortran and ifort give:
12345678901234567890
0.100
1.00
10.0
100.
0.100E+00004
0.100E+00005
0.100E+00006
0.100E+00007
0.100E+00008
0.100E+00009
0.100E+00010
0.100E+00011
0.100E+00012
With a very minor patch, we can get this:
0.100
1.00
10.0
100.
0.100E+00004
0.100E+00005
0.100E+00006
0.100E+00007
0.100E+00008
0.100E+00009
0.100E+00010
0.100E+00011
0.100E+00012
My question, are the values of 1.0, 10.0, and 100. formatted correctly?