Am 15.09.2012 17:22, schrieb Janus Weil:
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.)
Tobias
2012-09-15 Janus Weil <ja...@gcc.gnu.org>
PR fortran/54387
* expr.c (gfc_check_pointer_assign): Check for result of embracing
function.
2012-09-15 Janus Weil <ja...@gcc.gnu.org>
PR fortran/54387
* gfortran.dg/proc_ptr_38.f90: New.