public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/48684] New: Incorrect field alignment with Gw.dEe descriptor
@ 2011-04-19 14:11 thenlich at users dot sourceforge.net
  2011-04-19 14:14 ` [Bug libfortran/48684] " burnus at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: thenlich at users dot sourceforge.net @ 2011-04-19 14:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48684

           Summary: Incorrect field alignment with Gw.dEe descriptor
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: thenlich@users.sourceforge.net


With a Gw.dEe descriptor the output is formatted incorrectly if the F
conversion is selected and an exponent width e>4 is selected.

The conversion in this case is F(n-4).(d-x).n('b')

The constant n is required by Fortran 2008 to be e + 2.

But it is incorrectly calculated by GFortran as min(e, 4) + 2

print "(g15.3e5)", 0.1d0
print "(g15.3e5)", 0.1d12
Output:
    0.100
   0.100E+00012

Expected output:
   0.100
   0.100E+00012


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-02 11:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19 14:11 [Bug libfortran/48684] New: Incorrect field alignment with Gw.dEe descriptor thenlich at users dot sourceforge.net
2011-04-19 14:14 ` [Bug libfortran/48684] " burnus at gcc dot gnu.org
2011-04-19 14:59 ` thenlich at users dot sourceforge.net
2011-04-20  3:36 ` jvdelisle at gcc dot gnu.org
2011-04-23 21:28 ` jvdelisle at gcc dot gnu.org
2011-04-23 21:51 ` jvdelisle at frontier dot com
2011-04-25  8:47 ` thenlich at users dot sourceforge.net
2011-04-29 14:57 ` jvdelisle at gcc dot gnu.org
2011-04-29 15:13 ` jvdelisle at gcc dot gnu.org
2011-05-02 11:48 ` thenlich at users dot sourceforge.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).