https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66694
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- This PR seems fixed by the patch at https://gcc.gnu.org/ml/fortran/2018-05/msg00046.html, likely a duplicate of pr82923. On darwin the executable hangs due to pr30617.