]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: reject NULL actual argument without explicit interface [PR107576]
authorHarald Anlauf <anlauf@gmx.de>
Thu, 17 Nov 2022 20:36:49 +0000 (21:36 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 25 Nov 2022 22:27:36 +0000 (23:27 +0100)
commitb3b48f883d31910f2672640de2f5ff59e765488c
treef91fc4a9ddf4b08f9436179c9fea4901d13e3a30
parentac5044574cc4edbd43aacb09461bbaa0cedc684b
Fortran: reject NULL actual argument without explicit interface [PR107576]

gcc/fortran/ChangeLog:

PR fortran/107576
* interface.c (gfc_procedure_use): Reject NULL as actual argument
when there is no explicit procedure interface.

gcc/testsuite/ChangeLog:

PR fortran/107576
* gfortran.dg/null_actual_3.f90: New test.

(cherry picked from commit 820c25c83561085f54268bd536f9d216d03c3e18)
gcc/fortran/interface.c
gcc/testsuite/gfortran.dg/null_actual_3.f90 [new file with mode: 0644]