]> gcc.gnu.org Git - 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>
Wed, 15 Mar 2023 20:11:06 +0000 (21:11 +0100)
commit21139744aff3a9cb751f046755abb02ece5b3dcf
tree920c71a17263e13c78b00a1520ed2d3c8cc5ba72
parent94af33aa4da07269cb4a6645da9f7ddf8d1bad69
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.

(cherry picked from commit e20e5d9dc11b64e8eabce6803c91cb5768207083)
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/bind_c_usage_34.f90 [new file with mode: 0644]
This page took 0.06561 seconds and 5 git commands to generate.