public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/38439] I/O PD edit descriptor inconsistency
Date: Thu, 22 Jan 2009 10:55:00 -0000	[thread overview]
Message-ID: <20090122105317.2050.qmail@sourceware.org> (raw)
In-Reply-To: <bug-38439-13404@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from burnus at gcc dot gnu dot org  2009-01-22 10:53 -------
> Thus:  '(1pD24.15)'  is valid
Fully agreed - that version is valid and accepted with gfortran, ifort, NAG f95
etc.

> While: '(1pD24.15e4)'  is invalid

It is, but as written sunf95/openf95/gfortran 4.1 accept it at compile time and
gfortran 4.x and g95 accept it at run time and it generates the different size
of the exponent ("D+0" for pD24.15e1 and "D+00000" for pD24.15e5). Still, there
is the question whether one wants to allow it (at compile time) with some
options, reject it at run-time, or keep the status quo.

 * * *

The other question is: Why is the location marker ("1") in the error message
(see comment 2) way off? If one tries something else, the location fits much
better, e.g.
      WRITE (*,'(g0.3.4)') 1.0d0
                     1

Another error question is:  '(1pd0.3)'
ifort, g95, and NAG f95 claim: "Error: Zero field width invalid for D edit
descriptor"; gfortran accepts it but prints "*****" while openf95 accepts it an
prints "1.0E+000". I think gfortran should compile-time-diagnose it. (When
passing it as string, ifort and g95 print "1.000D+00" and f95 prints ""; I
think printing '******' is also ok.)


-- 


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


  parent reply	other threads:[~2009-01-22 10:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-07 21:35 [Bug fortran/38439] New: " burnus at gcc dot gnu dot org
2008-12-08  0:53 ` [Bug fortran/38439] " jvdelisle at gcc dot gnu dot org
2008-12-25 19:47 ` jvdelisle at gcc dot gnu dot org
2009-01-21  6:51 ` jvdelisle at gcc dot gnu dot org
2009-01-22  3:05 ` jvdelisle at gcc dot gnu dot org
2009-01-22 10:55 ` burnus at gcc dot gnu dot org [this message]
2009-01-23  5:46 ` jvdelisle at gcc dot gnu dot org
2009-01-24 18:11 ` jvdelisle at gcc dot gnu dot org
2009-04-23  1:52 ` jvdelisle at gcc dot gnu dot org
2009-04-23  2:53 ` kargl at gcc dot gnu dot org
2009-10-11 17:38 ` jvdelisle at gcc dot gnu dot org
2009-10-11 17:41 ` jvdelisle at gcc dot gnu dot org
2009-10-11 19:20 ` jvdelisle at gcc dot gnu dot org
2009-10-12  0:53 ` jvdelisle at gcc dot gnu dot org
2009-10-12  0:54 ` jvdelisle at gcc dot gnu dot org
2009-10-12  7:39 ` dominiq at lps dot ens dot fr
2009-10-12 12:42 ` jvdelisle at gcc dot gnu dot org
2009-10-12 13:32 ` dominiq at lps dot ens dot fr
2009-10-12 13:42 ` jvdelisle at gcc dot gnu dot org

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=20090122105317.2050.qmail@sourceware.org \
    --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: link
Be 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).