This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR 54387: [F03] Wrongly accepts non-proc result variable on the RHS of a proc-pointer assignment
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 16 Sep 2012 22:16:22 +0200
- Subject: Re: [Patch, Fortran] PR 54387: [F03] Wrongly accepts non-proc result variable on the RHS of a proc-pointer assignment
- References: <CAKwh3qhNNn2Y97HjznfwbL2Z6e3t4Op9FDFwq1noYrj_NuEheQ@mail.gmail.com> <5055B381.2080805@net-b.de>
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.
>
>