]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix NULL pointer dereference on overlapping initialization [PR50410]
authorHarald Anlauf <anlauf@gmx.de>
Thu, 28 Mar 2024 21:34:40 +0000 (22:34 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 29 Mar 2024 09:31:38 +0000 (10:31 +0100)
commit6fb253a25dff13253d63553f02e0fe72c5e3ab4e
tree399619d5ab833997019f4803e439adf774acea0d
parent3c793f0361bc66d2a6bf0b3e1fb3234fc511e2a6
Fortran: fix NULL pointer dereference on overlapping initialization [PR50410]

gcc/fortran/ChangeLog:

PR fortran/50410
* trans-expr.cc (gfc_conv_structure): Check for NULL pointer.

gcc/testsuite/ChangeLog:

PR fortran/50410
* gfortran.dg/data_initialized_4.f90: New test.
gcc/fortran/trans-expr.cc
gcc/testsuite/gfortran.dg/data_initialized_4.f90 [new file with mode: 0644]