This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Fortran, patch, pr68218, v1] ALLOCATE with size given by a module function
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Andre Vehreschild <vehre at gmx dot de>
- Cc: GCC-Patches-ML <gcc-patches at gcc dot gnu dot org>, GCC-Fortran-ML <fortran at gcc dot gnu dot org>
- Date: Sat, 7 Nov 2015 14:58:35 +0100
- Subject: Re: [Fortran, patch, pr68218, v1] ALLOCATE with size given by a module function
- Authentication-results: sourceware.org; auth=none
- References: <20151105152920 dot 65f52c89 at vepi2>
Dear Andre,
OK for trunk.
I understand that you have investigated the issue(s) reported to you
by Dominique and can find no sign of them.
Thanks
Paul
On 5 November 2015 at 15:29, Andre Vehreschild <vehre@gmx.de> wrote:
> Hi all,
>
> attached is a rather trivial patch to prevent multiple evaluations of a
> function in:
>
> allocate( array(func()) )
>
> The patch tests whether the upper bound of the array is a function
> and calls gfc_evaluate_now().
>
> Bootstrapped and regtested for x86_64-linux-gnu/f21.
>
> Ok for trunk?
>
> Regards,
> Andre
> --
> Andre Vehreschild * Email: vehre ad gmx dot de
--
Outside of a dog, a book is a man's best friend. Inside of a dog it's
too dark to read.
Groucho Marx