This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR61406 - [4.9/4.10 Regression] ICE on ASSOCIATE construct to literal array expression
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 9 Jun 2014 13:59:38 +0200
- Subject: Re: [Patch, fortran] PR61406 - [4.9/4.10 Regression] ICE on ASSOCIATE construct to literal array expression
- Authentication-results: sourceware.org; auth=none
- References: <20140609100521 dot 6DBF0105 at mailhost dot lps dot ens dot fr>
Dear Dominique,
Committed to trunk as revision 211374.
I decided that getting rid of the double temporary was delving too
deep into the workings of trans-array.c to be worthwhile at the
moment.
Cheers
Paul
On 9 June 2014 12:05, Dominique Dhumieres <dominiq@lps.ens.fr> wrote:
> Dear Paul,
>
>> This was a slip up on my part. The fix is obvious - OK for trunk and 4.9?
>
> The patch fixes the ICE. Any progress about the double temporary?
>
> [Book15] f90/bug% gfc pr61406.f90 -Warray-temporaries
> pr61406.f90:6.18:
>
> associate (n => [cos(theta), sin(theta)])
> 1
> Warning: Creating array temporary at (1)
> pr61406.f90:6.18:
>
> associate (n => [cos(theta), sin(theta)])
> 1
> Warning: Creating array temporary at (1)
>
> Thanks for the patch.
>
> Dominique
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy