public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kargl at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/30073] Array out of bounds gives name of RHS array not LHS array
Date: Thu, 15 Apr 2010 16:11:00 -0000 [thread overview]
Message-ID: <20100415161051.27918.qmail@sourceware.org> (raw)
In-Reply-To: <bug-30073-13404@http.gcc.gnu.org/bugzilla/>
------- Comment #2 from kargl at gcc dot gnu dot org 2010-04-15 16:10 -------
(In reply to comment #1)
> Shorter test:
>
> real :: a(1,1), b(3)
> integer :: i
> b = 45.0
> i = 2
> a(1,1:i) = b(i)
> end
Gfortran seems to do the right thing on this test case.
laptop:kargl[212] gfc4x -o z -fcheck=all a.f90 -fdump-tree-original
laptop:kargl[213] ./z
At line 5 of file a.f90
Fortran runtime error: Index '2' of dimension 2 of array 'a' outside
of expected range (1:1)
The original testcase in comment #1 still contains the variable.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30073
next prev parent reply other threads:[~2010-04-15 16:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-05 14:06 [Bug fortran/30073] New: Array out of bounds gives name of LHS array not RHS burnus at gcc dot gnu dot org
2006-12-05 14:30 ` [Bug fortran/30073] Array out of bounds gives name of RHS array not LHS array burnus at gcc dot gnu dot org
2007-01-22 21:32 ` fxcoudert at gcc dot gnu dot org
2010-04-15 16:11 ` kargl at gcc dot gnu dot org [this message]
2010-04-15 16:28 ` kargl at gcc dot gnu dot org
2010-04-15 19:55 ` kargl at gcc dot gnu dot org
2010-04-15 21:32 ` kargl at gcc dot gnu dot org
2010-04-15 21:44 ` kargl at gcc dot gnu dot org
2010-04-16 15:49 ` kargl at gcc dot gnu dot org
2010-04-16 15:50 ` kargl at gcc dot gnu dot org
2010-04-16 15:53 ` kargl at gcc dot gnu dot org
2010-04-16 15:56 ` kargl at gcc dot gnu dot org
2010-04-16 16:36 ` kargl at gcc dot gnu dot org
2010-04-24 20:32 ` kargl at gcc dot gnu dot org
2010-04-24 21:47 ` kargl 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=20100415161051.27918.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).