]> 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:03 +0000 (20:50 +0100)
commit7ce83edf8ebbbc21b20aeed3a3ab06bb2e9e02cb
tree4081314a422fa69bfa7661a3312e9eff1ba96023
parentcd38f23836220e15ceec90d0ccce5edce432f0e7
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]