https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88047
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > Side note: In principle I would have preferred something like this: > ... I agree that the patch is more general than my ad hoc check that a particular pointer is not dereferenced. > But that ICEs on class_array_3.f03. Yes: f951: internal compiler error: gfc_variable_attr(): Bad array reference This comes from case AR_UNKNOWN: /* If any of start, end or stride is not integer, there will already have been an error issued. */ int errors; gfc_get_errors (NULL, &errors); if (errors == 0) gfc_internal_error ("gfc_variable_attr(): Bad array reference"); } and looks like a latent bug. Any chance for a quick fix?