]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix ICE in check_interface [PR87908]
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 24 Sep 2025 07:01:23 +0000 (08:01 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 24 Sep 2025 07:01:23 +0000 (08:01 +0100)
commite77daa57300ba2cb116af8dd24f58cad00dc669c
tree316dbd53cf1f92cb5b1622b93217c5ad6805f6c1
parente9f3138f38067664bae25947ebabc0e8fa223d43
Fortran: Fix ICE in check_interface [PR87908]

2025-09-24  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/87908
* interface.cc (check_interface0): If a vtable is found in the
interface list, check that it is either a subroutine or a
function. Let resolve.cc do any further checking.

gcc/testsuite/
PR fortran/87908
* gfortran.dg/pr87908.f90: New test.
gcc/fortran/interface.cc
gcc/testsuite/gfortran.dg/pr87908.f90 [new file with mode: 0644]