public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/31346] wrong values for ubound and size of deferred shape arrays
Date: Tue, 02 Oct 2007 11:27:00 -0000 [thread overview]
Message-ID: <20071002112715.2537.qmail@sourceware.org> (raw)
In-Reply-To: <bug-31346-14266@http.gcc.gnu.org/bugzilla/>
------- Comment #6 from fxcoudert at gcc dot gnu dot org 2007-10-02 11:27 -------
(In reply to comment #5)
> Really? From how I read the standard (F2K draft), UBOUND(ARRAY, DIM) has (in
> this case) "a value equal to the upper bound for subscript DIM of ARRAY". I
> can't see it allowing returning random values such as 2193121.
The program shown is not valid Fortran, the processor can do whatever it wants.
A most sensible choice would be to reject it, of course: that's what g95 does
(and g77 also, according to Paul) but others have chosen to segfault (Intel,
Sun).
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|x86_64-linux-gnu |
GCC host triplet|x86_64-linux-gnu |
GCC target triplet|x86_64-linux-gnu |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31346
next prev parent reply other threads:[~2007-10-02 11:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-25 12:37 [Bug fortran/31346] New: " mikael dot morin at tele2 dot fr
2007-03-25 12:39 ` [Bug fortran/31346] " mikael dot morin at tele2 dot fr
2007-03-25 12:41 ` mikael dot morin at tele2 dot fr
2007-03-26 4:58 ` mikael dot morin at tele2 dot fr
2007-03-26 6:19 ` pault at gcc dot gnu dot org
2007-04-07 16:04 ` tobi at gcc dot gnu dot org
2007-10-02 11:27 ` fxcoudert at gcc dot gnu dot org [this message]
2007-11-12 1:14 ` fxcoudert at gcc dot gnu dot org
2009-12-20 20:10 ` tkoenig at gcc dot gnu dot org
2010-05-23 22:34 ` dfranke at gcc dot gnu dot org
2010-05-23 22:35 ` [Bug fortran/31346] wrong values for ubound and size of deferred shape arrays without explicit interface dfranke at gcc dot gnu dot org
2010-05-25 18:10 ` dfranke at gcc dot gnu dot org
2010-07-18 20:50 ` dfranke at gcc dot gnu dot org
2010-07-18 21:13 ` dfranke 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=20071002112715.2537.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).