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/38859] [4.3/4.4 Regression] ubound and lbound treat structure component references as whole arrays
Date: Thu, 15 Jan 2009 20:11:00 -0000 [thread overview]
Message-ID: <20090115201059.5348.qmail@sourceware.org> (raw)
In-Reply-To: <bug-38859-15620@http.gcc.gnu.org/bugzilla/>
------- Comment #2 from burnus at gcc dot gnu dot org 2009-01-15 20:10 -------
ida = lbound(a%i)
if (any(ida /= (/1,1/))) print *, 'lbound ', ida
Here, gfortran prints:
lbound 0 2
Correct would be
lbound 1 1
ida = ubound(a)
>>>>>>>>>>>>>>>>>>>^^^
Here a "%i" is missing otherwise the following line does not make sense:
if (any(ida /= (/6,7/))) print *, 'ubound ', ida
For ubound(a) the result should be "5 8" which is also gfortran's result.
For ubound(a%i):
gfortran: 5 8
correct: 6 7
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38859
next prev parent reply other threads:[~2009-01-15 20:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-15 19:47 [Bug fortran/38859] New: " dick dot hendrickson at gmail dot com
2009-01-15 20:04 ` [Bug fortran/38859] [4.3/4.4 Regression] " burnus at gcc dot gnu dot org
2009-01-15 20:11 ` burnus at gcc dot gnu dot org [this message]
2009-01-15 21:30 ` mikael at gcc dot gnu dot org
2009-01-17 15:00 ` mikael at gcc dot gnu dot org
2009-01-17 15:45 ` burnus at gcc dot gnu dot org
2009-01-19 22:20 ` mikael at gcc dot gnu dot org
2009-01-20 5:55 ` [Bug fortran/38859] [4.3 " pault at gcc dot gnu dot org
2009-01-26 5:44 ` pault at gcc dot gnu dot org
2009-01-26 5:45 ` pault 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=20090115201059.5348.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).