https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121627
--- Comment #6 from kargls at comcast dot net --- (In reply to Dustin Warkotsch from comment #5) > > Huh, I didn't notice that. I just took the name from the example program in > the "selected_real_kind" GCC doc ( > https://gcc.gnu.org/onlinedocs/gfortran/SELECTED_005fREAL_005fKIND.html ) > and built upon that. > > I can confirm that changing the program name to something sensible also > solves the problem. Well, the example program in selected_real_kind() does not use iso_fortran_env, so there isn't a problem. Unfortunately, your modified program invoked the ICE. But, it was short enough to quickly identify the issue and fix. Thanks for the bug report.