Hi all, here is a small regression-fix patch for a problem with procedure pointers and the PURE attribute, for details see the PR. In essence: gfc_compare_interfaces is asymmetric in the two interfaces it compares (e.g. regarding the PURE attribute), and we must not symmetrize it by calling it twice with exchanged arguments.
Regtested on x86_64-unknown-linux-gnu. Ok for trunk? Cheers, Janus 2013-08-07 Janus Weil <ja...@gcc.gnu.org> PR fortran/58099 * expr.c (gfc_check_pointer_assign): Remove second call to 'gfc_compare_interfaces' with swapped arguments. * interface.c (gfc_compare_interfaces): Symmetrize the call to 'check_result_characteristics' by calling it with swapped arguments. 2013-08-07 Janus Weil <ja...@gcc.gnu.org> PR fortran/58099 * gfortran.dg/proc_ptr_43.f90: New.
pr58099.diff
Description: Binary data
proc_ptr_43.f90
Description: Binary data