https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174
--- Comment #9 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- FWITW, there is a difference when handling the MOLD expression in gfc_find_and_cut_at_last_class_ref. In the version that calls gfc_expr_to_initialize, we see (gdb) call debug(base_expr) push:this % mold (CLASS __class__STAR_a) whereas with current trunk we see (gdb) call debug(base_expr) push:this % mold (DERIVED STAR) On entry, the variable is push:this % mold (DERIVED STAR), so the call to gfc_expre_to_initialize seems to do something about the type...