https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121185
--- Comment #31 from Mikael Morin <mikael at gcc dot gnu.org> --- The problem is, in norm we use a polymorphic assignment to assign y%x, using the virtual table of y. It is a problem I have seen before on other testcases when preparing the patch, gfc_get_class_from_expr is "unbounded", it happily walks up all the reference chain as long as it doesn't find a class object.