]> git.ipfire.org Git - people/ms/gcc.git/commit
Fortran: fix ICE with bind(c) in block data [PR104332]
authorHarald Anlauf <anlauf@gmx.de>
Thu, 9 Mar 2023 17:59:08 +0000 (18:59 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 17 Mar 2023 19:50:24 +0000 (20:50 +0100)
commitc5cb9d8819eb9551d23f77e63cb3399115f0aab8
tree180f51cf1c74150d194039893ca1227f9041ddd4
parentd06cdb8e7593cafd44435f02ba63987ec38036c9
Fortran: fix ICE with bind(c) in block data [PR104332]

gcc/fortran/ChangeLog:

PR fortran/104332
* resolve.c (resolve_symbol): Avoid NULL pointer dereference while
checking a symbol with the BIND(C) attribute.

gcc/testsuite/ChangeLog:

PR fortran/104332
* gfortran.dg/bind_c_usage_34.f90: New test.

(cherry picked from commit e20e5d9dc11b64e8eabce6803c91cb5768207083)
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/bind_c_usage_34.f90 [new file with mode: 0644]