https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114022
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:e8a36b051587dccfc7c161ed4fb42c493212c71f commit r15-9761-ge8a36b051587dccfc7c161ed4fb42c493212c71f Author: Harald Anlauf <anl...@gmx.de> Date: Fri May 30 19:25:15 2025 +0200 Fortran: parameter inquiries of constant complex arrays [PR102599,PR114022] PR fortran/102599 PR fortran/114022 gcc/fortran/ChangeLog: * expr.cc (simplify_complex_array_inquiry_ref): Helper function for simplification of inquiry references (%re/%im) of constant complex arrays. (find_inquiry_ref): Use it for handling %re/%im inquiry references of complex arrays. (scalarize_intrinsic_call): Fix frontend memleak. * primary.cc (gfc_match_varspec): When the reference is NULL, the previous simplification has succeeded in evaluating inquiry references also of arrays. gcc/testsuite/ChangeLog: * gfortran.dg/inquiry_type_ref_8.f90: New test. (cherry picked from commit 490072b927dac2f57e541b0ee680896e23c5d998)