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
Janus Weil wrote:
> 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 :)
>
Well, for intrinsic functions, you save one function call:
- is_proc_ptr_comp(expr2, &comp);
gcc_assert (expr2->value.function.isym
- || (comp && comp->attr.dimension)
+ || (is_proc_ptr_comp(expr2, &comp) && comp && comp->attr.dimension)
Side note: There is a " " missing after "is_proc_ptr_comp".
Tobias