From: Alberto Luaces <aluaces@udc.es>
To: fortran@gcc.gnu.org
Subject: Re: move_alloc for types holding allocatable members
Date: Thu, 08 Oct 2015 19:06:00 -0000 [thread overview]
Message-ID: <87pp0pi3i5.fsf@eps142.cdf.udc.es> (raw)
In-Reply-To: <20151008175719.GA80332@troutmask.apl.washington.edu>
Steve Kargl writes:
> On Thu, Oct 08, 2015 at 06:18:19PM +0200, Alberto Luaces wrote:
>>
>> allocate(mytemp(20))
>> call move_alloc(mytemp, myarray)
>>
>
> What are you expecting to happen here?
Hi, Steve. I wanted to grow the array to 20 elements. My real code
works that way, since the length is not known beforehand, and it usually
gets bigger. Did I reverse the arguments?
--
Alberto
next prev parent reply other threads:[~2015-10-08 19:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-08 16:18 Alberto Luaces
2015-10-08 17:57 ` Steve Kargl
2015-10-08 19:06 ` Alberto Luaces [this message]
2015-10-08 20:34 ` Steve Kargl
2015-10-09 8:23 ` Alberto Luaces
2015-10-08 19:35 ` Anton Shterenlikht
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=87pp0pi3i5.fsf@eps142.cdf.udc.es \
--to=aluaces@udc.es \
--cc=fortran@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).