re PR fortran/85537 ([F08] Invalid memory reference at runtime when calling subroutin...
authorJanus Weil <janus@gcc.gnu.org>
Wed, 27 Mar 2019 22:40:22 +0000 (23:40 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Wed, 27 Mar 2019 22:40:22 +0000 (23:40 +0100)
commit7076b27b7488bd8395310811a9c0d39ed5404490
treefd50b2e9fc5cb909cf8ae451ab199db21cd69738
parent303d6cb2760304f5e6d00c4419c0dd1144588180
re PR fortran/85537 ([F08] Invalid memory reference at runtime when calling subroutine through procedure pointer)

fix PR 85537

2019-03-27  Janus Weil  <janus@gcc.gnu.org>

PR fortran/85537
* expr.c (gfc_check_assign_symbol): Reject internal and dummy procedures
in procedure pointer initialization.

2019-03-27  Janus Weil  <janus@gcc.gnu.org>

PR fortran/85537
* gfortran.dg/dummy_procedure_11.f90: Fix test case.
* gfortran.dg/pointer_init_11.f90: New test case.

From-SVN: r269980
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dummy_procedure_11.f90
gcc/testsuite/gfortran.dg/pointer_init_11.f90 [new file with mode: 0644]