This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR40646 - ICE assigning array return value from type-bound procedure


Paul Richard Thomas wrote:
> I have taken up Tobias' version, which works just fine as long as you
> take target->n.sym.  I have also, done some revision of the value
> union of gfc_expr to ensure that like things in differnet members are
> aligned.  It's not actually necessary but it does relieve the need to
> remember that isym was lined up with tbp, so that NULLing one did a
> job on the other.
>
> Again, bootstrapped and regtested FC9/x86_64 - OK for trunk?
>   
Assuming that I may also approve my parts: The patch is OK. (Without the
accidental gcc_assert change.)

Thank you for your patch.

Tobias

> 2009-07-04  Paul Thomas  <pault@gcc.gnu.org>
> 	and Tobias Burnus <burnus@gcc.gnu.org>
>
> 	PR fortran/40646
> 	* gfortran.h : Change the compcall member of the 'value' union
> 	in the gfc_expr structure so that its fields overlap with the
> 	'function' member.
> 	* resolve.c (resolve_compcall): Set the function.esym.
> 	* trans-expr.c (gfc_trans_arrayfunc_assign): Use
> 	is_proc_ptr_comp in the condition.
>
> 2009-07-04  Paul Thomas  <pault@gcc.gnu.org>
> 	and Tobias Burnus <burnus@gcc.gnu.org>
>
> 	PR fortran/40646
> 	* gfortran.dg/func_assign_3.f90 : New test.
>   


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]