https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87945
--- Comment #8 from kargl at gcc dot gnu.org --- (In reply to David Binderman from comment #6) > Not sure this is related, but I tried compiling ./gfortran.dg/pr87945_1.f90 > on an asan build of gcc trunk revision 267200 and got this: > I think it's irrelevant to my patch. Fixing the ICE simply allows one to get to where the sanitizers get upset. When find_inquiry_ref() is used to a inquiry reference, it nullifies a pointer. If it is called twice on the same expression, then this might be why there is a use after free.