]> git.ipfire.org Git - people/ms/gcc.git/commit
Fortran: Allow external function from in an associate block [PR87127]
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 20 Mar 2023 06:23:29 +0000 (06:23 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 20 Mar 2023 06:23:29 +0000 (06:23 +0000)
commit9ccf471f8cc7341984f6613247f01d8ecfcb7ad5
tree2cfe87a3fb3d1397d1168e21c11f3f7f0187dbd1
parentf58c1ecb352b92e8504ad95f6020784d09338e7c
Fortran: Allow external function from in an associate block [PR87127]

2023-03-20  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/87127
* resolve.cc (check_host_association): If an external function
is typed but not declared explicitly to be external, change the
old symbol from a variable to an external function.

gcc/testsuite/
PR fortran/87127
* gfortran.dg/external_procedures_4.f90: New test.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/external_procedures_4.f90 [new file with mode: 0644]