diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2025-04-13 10:22:07 +0200 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2025-04-13 10:23:41 +0200 |
commit | 64319b2ccae2fdfae06347545e031e56d790dad7 (patch) | |
tree | 7e134c6d19b1ea532252e04e8f1d9f9d661270f5 /libjava/classpath | |
parent | 1fda2deeea862072543035b6005c65d4c160691f (diff) | |
download | gcc-64319b2ccae2fdfae06347545e031e56d790dad7.zip gcc-64319b2ccae2fdfae06347545e031e56d790dad7.tar.gz gcc-64319b2ccae2fdfae06347545e031e56d790dad7.tar.bz2 |
Fix ICE in compare_parameter.
This patch fixes an ICE by setting the typespec of a dummy argument
from a global function if known. plus setting the correct flag.
This also removes the corresponding assert. I'm not quite sure
that the code with the subroutine attribute can be reached, but
I thought better safe than sorry.
gcc/fortran/ChangeLog:
PR fortran/119669
* interface.cc (compare_parameter): Error when mismatch between
formal argument as subroutine and function. If the dummy
argument is a known function, set its typespec.
gcc/testsuite/ChangeLog:
PR fortran/119669
* gfortran.dg/interface_59.f90: New test.
Diffstat (limited to 'libjava/classpath')
0 files changed, 0 insertions, 0 deletions