]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR 118884, Lapack build failure.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 15 Feb 2025 10:38:05 +0000 (11:38 +0100)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 15 Feb 2025 10:39:51 +0000 (11:39 +0100)
commitfd00010ba21c04bddb20aef52f62de5636075067
tree655e0fe2ad89709d0e9da08bf50d69e903cc5adb
parent8f386aadec70624f13b48dfddc4a8f689ccc505f
Fix PR 118884, Lapack build failure.

The fix for PR 118845 introduced new checks, which in turn exposed
a case where the typespec information on a symbol generated symbol
was not set.  This led to an apparent type of BT_UNKNOWN, and hence
an error.  Fixed as obvoius and simple.

gcc/fortran/ChangeLog:

* frontend-passes.cc (check_externals_procedure): Copy
typespec from old to new symbol.

gcc/testsuite/ChangeLog:

* gfortran.dg/interface_54.f90: New test.
gcc/fortran/frontend-passes.cc
gcc/testsuite/gfortran.dg/interface_54.f90 [new file with mode: 0644]