From: dominiq@lps.ens.fr (Dominique Dhumieres)
To: paul.richard.thomas@gmail.com, dominiq@lps.ens.fr
Cc: gcc-patches@gcc.gnu.org, fortran@gcc.gnu.org, burnus@net-b.de
Subject: Re: (Re)allocation of allocatable arrays on assignment - F2003
Date: Mon, 01 Nov 2010 10:31:00 -0000 [thread overview]
Message-ID: <20101101101824.F0F663BE18@mailhost.lps.ens.fr> (raw)
In-Reply-To: <AANLkTim-ZGfmRmkbbq4rh9i_QwVxp3VJkQx9oJkWe6OQ@mail.gmail.com>
Paul,
I think I have found another problem with bounds:
[macbook] f90/bug% cat bounds_sec_a_8_red.f90
integer, parameter :: ik=8
integer(4), allocatable :: ib(:)
integer, parameter :: from=-1, to=2
integer(ik), allocatable :: ia(:)
allocate(ia(from:to))
ib=ia
print *, 'bounds, full array ', lbound(ib), ubound(ib)
deallocate(ia)
end
[macbook] f90/bug% gfc bounds_sec_a_8_red.f90
[macbook] f90/bug% a.out
bounds, full array 1 4
Should not the answer be -1:2?
Dominique
next prev parent reply other threads:[~2010-11-01 10:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20101009134002.157E83BE0F@mailhost.lps.ens.fr>
[not found] ` <AANLkTinUrNM2PSQdAoCb=PGEhNtyvx5-Czke8hKcCbJb@mail.gmail.com>
[not found] ` <20101023202653.2DF9D3BE18@mailhost.lps.ens.fr>
[not found] ` <AANLkTimcyDC-qh43tOCkaWwfsT2_RsW3MfZ3ChQRj3zp@mail.gmail.com>
[not found] ` <4CC47A12.7050504@net-b.de>
2010-10-31 19:53 ` Paul Richard Thomas
2010-11-02 10:43 ` Tobias Burnus
[not found] ` <20101031215043.8B69A3BE18@mailhost.lps.ens.fr>
2010-11-01 6:48 ` Paul Richard Thomas
2010-11-01 10:31 ` Dominique Dhumieres [this message]
2010-11-02 21:28 ` Paul Richard Thomas
2010-11-02 22:24 ` Dominique Dhumieres
[not found] ` <AANLkTimVxFydhc6_NQ98Ghhbet+nGgi0THupDoPtfS4k@mail.gmail.com>
2010-11-04 8:46 ` Paul Richard Thomas
2010-11-04 8:56 ` Tobias Burnus
2010-11-04 9:10 ` Tobias Burnus
2010-11-04 10:08 ` Tobias Burnus
2010-11-04 10:47 ` Paul Richard Thomas
2010-11-04 11:08 ` Tobias Burnus
2010-11-04 14:27 ` Dominique Dhumieres
2010-11-04 14:40 ` Paul Richard Thomas
2010-11-04 14:45 ` Tobias Burnus
2010-11-02 22:32 ` Dominique Dhumieres
2010-11-02 21:35 ` Paul Richard Thomas
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=20101101101824.F0F663BE18@mailhost.lps.ens.fr \
--to=dominiq@lps.ens.fr \
--cc=burnus@net-b.de \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=paul.richard.thomas@gmail.com \
/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).