https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84385
janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-02-14 Assignee|unassigned at gcc dot gnu.org |janus at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from janus at gcc dot gnu.org --- Draft patch: Index: gcc/fortran/match.c =================================================================== --- gcc/fortran/match.c (revision 257635) +++ gcc/fortran/match.c (working copy) @@ -6201,6 +6201,7 @@ gfc_match_select_type (void) || CLASS_DATA (expr1)->attr.codimension) && expr1->ref && expr1->ref->type == REF_ARRAY + && expr1->ref->u.ar.type == AR_FULL && expr1->ref->next == NULL); /* Check for F03:C811. */