This patch fixes PR96102. See the explanatory comment in the testcase.
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 10 Aug 2020 05:19:25 +0000 (06:19 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 10 Aug 2020 05:19:25 +0000 (06:19 +0100)
commit359815ad136ee6ad142fb54470ce79609e43ff5d
tree2902c1a0fa00f028f60b4c2b34bfcd79cd52f2c1
parent99e4891ed552aca4ca147671701edd0b31015f66
This patch fixes PR96102. See the explanatory comment in the testcase.

2020-08-10  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/96102
* resolve.c (check_host_association): Replace the gcc_assert
with an error for internal procedures.

gcc/testsuite/
PR fortran/96102
* gfortran.dg/pr96102.f90: New test.
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/pr96102.f90 [new file with mode: 0644]