]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: NULL() is not interoperable
authorHarald Anlauf <anlauf@gmx.de>
Wed, 17 Nov 2021 21:21:24 +0000 (22:21 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 18 Nov 2021 18:35:43 +0000 (19:35 +0100)
commit3535be6c6f440909798d1c78e862a657f7adaf63
tree8d841eccce5e8db619325ae471c1f20bf0b3a5f6
parent22c242342e38ebffa6bbf7e86e7a1e4abdf0d686
Fortran: NULL() is not interoperable

gcc/fortran/ChangeLog:

PR fortran/101329
* check.c (is_c_interoperable): Reject NULL() as it is not
interoperable.

gcc/testsuite/ChangeLog:

PR fortran/101329
* gfortran.dg/pr101329.f90: New test.

Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
gcc/fortran/check.c
gcc/testsuite/gfortran.dg/pr101329.f90 [new file with mode: 0644]