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] PR 54387: [F03] Wrongly accepts non-proc result variable on the RHS of a proc-pointer assignment


Hi,

>> here is a small patch which fixes an accepts-invalid problem with
>> proc-pointer assignments. Regtested on x86_64-unknown-linux-gnu. Ok
>> for trunk?
>
>
> OK. Thanks for the patch.
>
> (Though, I am wondering whether the error message could be improved. We know
> that the RHS is not the procedure but the result variable; it might help the
> user if the message is a bit clearer. But you can also keep the current
> version.)

thanks for the review. Committed as r191364 (with a slight rewording
of the error message).

Cheers,
Janus




>> 2012-09-15  Janus Weil  <janus@gcc.gnu.org>
>>
>>         PR fortran/54387
>>         * expr.c (gfc_check_pointer_assign): Check for result of embracing
>>         function.
>>
>> 2012-09-15  Janus Weil  <janus@gcc.gnu.org>
>>
>>         PR fortran/54387
>>         * gfortran.dg/proc_ptr_38.f90: New.
>
>


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