]> 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, 10 Mar 2023 17:56:13 +0000 (18:56 +0100)
commite20e5d9dc11b64e8eabce6803c91cb5768207083
treec5d0aca3ac3cee8d70f6673d3c342e58e3d92818
parentfcbc5c190c40b51c82f827830ce403c07d628960
Fortran: fix ICE with bind(c) in block data [PR104332]

gcc/fortran/ChangeLog:

PR fortran/104332
* resolve.cc (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.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/bind_c_usage_34.f90 [new file with mode: 0644]