+2025-06-03 Harald Anlauf <anlauf@gmx.de>
+
+ Backported from master:
+ 2025-05-30 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/102599
+ PR fortran/114022
+ * 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.
+
+2025-06-03 Harald Anlauf <anlauf@gmx.de>
+
+ Backported from master:
+ 2025-05-27 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/101735
+ * primary.cc (gfc_match_varspec): Correct order of logic.
+
+2025-06-03 Harald Anlauf <anlauf@gmx.de>
+
+ Backported from master:
+ 2025-05-27 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/101735
+ * expr.cc (find_inquiry_ref): If an inquiry reference applies to
+ a substring, use that, and calculate substring length if needed.
+ * primary.cc (extend_ref): Also handle attaching to end of
+ reference chain for appending.
+ (gfc_match_varspec): Discrimate between arrays of character and
+ substrings of them. If a substring is taken from a character
+ component of a derived type, get the proper typespec so that
+ inquiry references work correctly.
+ (gfc_match_rvalue): Handle corner case where we hit a seemingly
+ dangling '%' and missed an inquiry reference. Try another match.
+
2025-06-02 Jakub Jelinek <jakub@redhat.com>
Backported from master:
+2025-06-03 Harald Anlauf <anlauf@gmx.de>
+
+ Backported from master:
+ 2025-05-30 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/102599
+ PR fortran/114022
+ * gfortran.dg/inquiry_type_ref_8.f90: New test.
+
+2025-06-03 Harald Anlauf <anlauf@gmx.de>
+
+ Backported from master:
+ 2025-05-27 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/101735
+ * gfortran.dg/inquiry_type_ref_7.f90: New test.
+
2025-06-02 Jason Merrill <jason@redhat.com>
PR c++/120123