This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR40646 - ICE assigning array return value from type-bound procedure
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 4 Jul 2009 14:57:21 +0200
- Subject: Re: [Patch, fortran] PR40646 - ICE assigning array return value from type-bound procedure
- References: <339c37f20907040521h11c89044q24b3a54f3e200b52@mail.gmail.com>
Hi Paul,
> The attached is verging on obvious.
>
> Bootstrapped and regtested on FC9/x86_64 - OK for trunk?
In principle your patch looks ok.
One small question though: Is there a special reason for your second
hunk in gfc_trans_arrayfunc_assign? It should do exactly the same as
before, I think. Or do I miss something? I'm just curious, since I'm
the author of the code you're changing :)
Cheers,
Janus
> 2009-07-04 ?Paul Thomas ?<pault@gcc.gnu.org>
>
> ? ? ? ?PR fortran/40646
> ? ? ? ?* trans-expr.c (gfc_trans_arrayfunc_assign): Make sure that the
> ? ? ? ?esym field of the expression is filled and use is_proc_ptr_comp
> ? ? ? ?in the condition.
>
> 2009-07-04 ?Paul Thomas ?<pault@gcc.gnu.org>
>
> ? ? ? ?PR fortran/40646
> ? ? ? ?* gfortran.dg/func_assign_3.f90 : New test.
>
> --
> The knack of flying is learning how to throw yourself at the ground and miss.
> ? ? ? --Hitchhikers Guide to the Galaxy
>