https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85786
--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > > --- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > > Likely r251949. > > There are no changes within trans-intrinsic.c(gfc_conv_associated) > that correspond to that revision. My best guess with looking at > 'svn annotate' is the offending commit is r190641. The function > has grown over time, the missing lines I inserted with my patch > may have at one time been present but code motion moved them to > a different block. Compiling the test in comment 3 with revision r251946 gives at run time associated(cs) = T associated(cs%v) = T loc(e) = 140436819687344 e = 42.0 42.0 42.0 42.0 loc(f_ptr) = 140436819687344 f_ptr = 42.0 42.0 42.0 42.0 in query associated(cs%v) = T associated(cs%v(2)%p) = T loc(cs%v(2)%p) = 140436819687344 associated With r251980 it gives associated(cs) = T associated(cs%v) = T loc(e) = 140579551852496 e = 42.0 42.0 42.0 42.0 loc(f_ptr) = 140579551852496 f_ptr = 42.0 42.0 42.0 42.0 in query associated(cs%v) = T associated(cs%v(2)%p) = T loc(cs%v(2)%p) = 140579551852496 not associated r251949 is the only gfortran commit in the range.