Calling gfc_find_vtab during resolution during parsing comes too early for finalizers. This patch just moves it to the resolution, which seems to be the simplest solution. (I tried way more complicated ones which do not work; thus, I settled for the simple solution ...) OK for GCC 9/10/mainline? Tobias PS: I was wondering about FORALL (which is resolved separately), but as "f = b" does not work (missing loop index) and as "f(i)%a = b" is broken (no reallocation, no __copy call, → https://gcc.gnu.org/PR98336 ) I think no action is needed for now. ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter