http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58185
--- Comment #2 from janus at gcc dot gnu.org --- (In reply to janus from comment #1) > 0x567f7e copy_ts_from_selector_to_associate > /home/janus/gcc49/trunk/gcc/fortran/match.c:5171 I think this is where the problem is. This function should be fixed to not call gfc_build_class_symbol with ts->u.derived == NULL.