public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "thenlich at users dot sourceforge.net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/48684] New: Incorrect field alignment with Gw.dEe descriptor Date: Tue, 19 Apr 2011 14:11:00 -0000 [thread overview] Message-ID: <bug-48684-4@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2011-04-19 14:11 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-04-19 14:11 thenlich at users dot sourceforge.net [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-48684-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).