PR fortran/63797 - Bogus ambiguous reference to 'sqrt'
authorHarald Anlauf <anlauf@gmx.de>
Fri, 16 Apr 2021 14:24:31 +0000 (16:24 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 16 Apr 2021 14:24:31 +0000 (16:24 +0200)
commitd264194c1069fbcd129222f86455137f29a5c6fd
tree1b9bcf6ca249556709dcc5f15969d0405d796053
parent330ae1e54305f4755258d89469c1ad0d8479ef4c
PR fortran/63797 - Bogus ambiguous reference to 'sqrt'

The interface of an intrinsic procedure is automatically explicit.
Do not write it to the module file to prevent wrong ambiguities on USE.

gcc/fortran/ChangeLog:

PR fortran/63797
* module.c (write_symtree): Do not write interface of intrinsic
procedure to module file for F2003 and newer.

gcc/testsuite/ChangeLog:

PR fortran/63797
* gfortran.dg/pr63797.f90: New test.

Co-authored-by: Paul Thomas <pault@gcc.gnu.org>
gcc/fortran/module.c
gcc/testsuite/gfortran.dg/pr63797.f90 [new file with mode: 0644]