------- Comment #5 from jvdelisle at gcc dot gnu dot org 2007-10-26 02:22 ------- FrRom my brief explorations, in resolve.c (resolve_entries) on or about line 560, we are NOT addressing the case for BT_DERIVED in the switch statement. If there we set sym = NULL for BT_DERIVED, we get past this section of code. Then we need to deal with the the same issue in resolve_unknown_f where we do not address setting the type for derived types, only, gfc_get_default_type which returns BT_UNKNOWN.
I suspect we could fix this in more than one place. I was thinking in resolve_unknown_f . -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33499