]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: name conflict between internal procedure and derived type [PR104351]
authorHarald Anlauf <anlauf@gmx.de>
Wed, 11 Oct 2023 19:29:35 +0000 (21:29 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 13 Oct 2023 16:54:53 +0000 (18:54 +0200)
commitd78fef5371759849944966dec65d9e987efba509
tree81e8e456e2fea5bdd607ba0672a779267d6fac13
parent458c253ccdae9df439b9a452d04e325101e5756e
Fortran: name conflict between internal procedure and derived type [PR104351]

gcc/fortran/ChangeLog:

PR fortran/104351
* decl.cc (get_proc_name): Extend name conflict detection between
internal procedure and previous declaration also to derived type.

gcc/testsuite/ChangeLog:

PR fortran/104351
* gfortran.dg/derived_function_interface_1.f90: Adjust pattern.
* gfortran.dg/pr104351.f90: New test.
gcc/fortran/decl.cc
gcc/testsuite/gfortran.dg/derived_function_interface_1.f90
gcc/testsuite/gfortran.dg/pr104351.f90 [new file with mode: 0644]