]> git.ipfire.org Git - people/ms/gcc.git/commit
Fortran: procedures with BIND(C) attribute require explicit interface [PR85877]
authorHarald Anlauf <anlauf@gmx.de>
Fri, 17 Mar 2023 21:24:49 +0000 (22:24 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 19 Mar 2023 19:32:10 +0000 (20:32 +0100)
commit5426ab34643d9e6502f3ee572891a03471fa33ed
treecbd06e90f1d829408b9561842e488fc8fde88fc7
parent655689f6be8606991f8a3359eadf017af7238a88
Fortran: procedures with BIND(C) attribute require explicit interface [PR85877]

gcc/fortran/ChangeLog:

PR fortran/85877
* resolve.cc (resolve_fl_procedure): Check for an explicit interface
of procedures with the BIND(C) attribute (F2018:15.4.2.2).

gcc/testsuite/ChangeLog:

PR fortran/85877
* gfortran.dg/pr85877.f90: New test.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr85877.f90 [new file with mode: 0644]