https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85996
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > There are 3 commits to gcc/fortran in that range. I > reverted what would be the obvious one that might > cause a problem and the ICE still occurs. Was it r258347? > The ICE disappears if uppercase_c and uppercase_s are > moved up in the source code to a location that comes > before any reference to the generic uppercase. This rings some bells, but I am unable to remember for which PR this happened.