https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93581
--- Comment #9 from Paul Thomas <pault at gcc dot gnu.org> --- (In reply to Tobias Burnus from comment #7) > Patch was submitted at > https://gcc.gnu.org/pipermail/fortran/2020-March/054050.html > > And committed as r10-7081-g9de42a8e995451cb13dceb3970ae23ff88240bff > [As far as I could see, it was not yet backported to GCC 9.] > > > commit 9de42a8e995451cb13dceb3970ae23ff88240bff > Author: Paul Thomas <pa...@pc30.home> > Date: Sun Mar 8 18:52:35 2020 +0000 > > Patch and ChangeLogs for PR93581 > > +2020-03-08 Paul Thomas <pa...@gcc.gnu.org> > + > + PR fortran/93581 > + * resolve.c (gfc_resolve_ref): Modify array refs to be elements > + if the ref chain ends in INQUIRY_LEN. > + * trans-array.c (gfc_get_dataptr_offset): Provide the offsets > + for INQUIRY_RE and INQUIRY_IM. > + > +2020-03-08 Paul Thomas <pa...@gcc.gnu.org> > + > + PR fortran/93581 > + * gfortran.dg/inquiry_type_ref_6.f90 : New test. > + Hi Tobias, If you could backport it for me, I would be really grateful. I completely screwed up my 9-branch, due to my continuing git incompetence, and have not had time to rescue it. Cheers Paul