https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107141
--- Comment #6 from anlauf at gcc dot gnu.org --- (In reply to David Binderman from comment #5) > Bit more detail from valgrind: > > /Lower/derived-type-finalization.f90 > ==687074== Invalid read of size 8 > ==687074== at 0x856D97: gfc_class_len_get(tree_node*) (trans-expr.cc:273) > ==687074== by 0x86F37B: trans_class_vptr_len_assignment(stmtblock_t*, > gfc_expr*, gfc_expr*, gfc_se*, tree_node**, tree_node**, tree_node**) > (trans-expr.cc:10169) Judging from the name of the testcase this could be a quite different issue. Please open a separate PR and attach the source there.