https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65766
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- The patch in comment 3 fixes the PR without regression, as well as pr61676, pr63494, and pr66562 (duplicates?). Note that patches should be posted to gcc-patc...@gcc.gnu.org and for gfortran to fort...@gcc.gnu.org with the change log entry.