https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121466
Bug ID: 121466 Summary: Type mismatch, passing global function (Regression gfortran 15.1) Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dml2011 at free dot fr Target Milestone: --- Created attachment 62083 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62083&action=edit Code generating the error Dear gfortran developers, Recently, I’ve updated the gfortran compiler to gfortran-15 on an ARM Mac laptop. Since then, I’ve encountered a strange error at the compilation in a library that uses a function as an argument for another function. --------------- Type mismatch at (1) passing global function ‘sqrt_perso’ declared at (2) (UNKNOWN/REAL(8)) --------------- The error is not present with gfortran-14 (or 11). Furthermore, when the function is not called sqrt_perso but f, the code compile perfectly with gfortran-15 (comment/uncomment lines 9/10) The following minimal attached code gives the error. It could be related to the 118884 bug. David