]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix check for class array valued constructors and functions [PR123961]
authorHarald Anlauf <anlauf@gmx.de>
Sat, 7 Feb 2026 19:23:04 +0000 (20:23 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 8 Feb 2026 19:21:52 +0000 (20:21 +0100)
commitf48b55c50d254c73da00a151c563997d04364301
treec3ac8f7c19f9239f22d2c61d3534f04e078fe9aa
parent5e0ab35a54c0a56932be251c5b3f9ec627dcfabd
Fortran: fix check for class array valued constructors and functions [PR123961]

PR fortran/123961

gcc/fortran/ChangeLog:

* check.cc (array_check): Extend check to class array functions.
* class.cc (gfc_add_class_array_ref): Fix NULL pointer dereference.

gcc/testsuite/ChangeLog:

* gfortran.dg/class_array_24.f90: New test.
gcc/fortran/check.cc
gcc/fortran/class.cc
gcc/testsuite/gfortran.dg/class_array_24.f90 [new file with mode: 0644]