https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102891
--- Comment #3 from anlauf at gcc dot gnu.org --- The original issue (comment#0) is fixed with the fix for pr119986, but the other issue in comment#2 still remains. It looks like gfc_conv_intrinsic_transfer gets confused by the inquiry ref.