re PR fortran/54285 ([F03] Calling a PPC with proc-ptr result)
authorJanus Weil <janus@gcc.gnu.org>
Mon, 17 Sep 2012 12:50:34 +0000 (14:50 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Mon, 17 Sep 2012 12:50:34 +0000 (14:50 +0200)
commita4a76e5242236301f4713efae30642fb39e5d0eb
treeccf8bb60f63d400aee5500fda6226de40f7c80c4
parent640a4c59ed729e48250032b039a5239cd95c1d41
re PR fortran/54285 ([F03] Calling a PPC with proc-ptr result)

2012-09-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/54285
* expr.c (gfc_check_pointer_assign): Correctly handle procedure pointers
as function results.
* primary.c (gfc_match_varspec): Allow to call a PPC with proc-ptr
result.

2012-09-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/54285
* gfortran.dg/proc_ptr_result_7.f90: New.

From-SVN: r191383
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/proc_ptr_result_7.f90 [new file with mode: 0644]