https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80484
--- Comment #8 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Regarding: use dt_write_mod, only: B_type, write (formatted) This works: use dt_write_mod, only: B_type It seems to me that since write (formatted) is a special instance of an interface defined by the langauge that it should nut be included in the ONLY and might even be invalid. Its not really a name. The error is an ICE from hitting what was expected to be unreachable. I wonder if we should accept it and do nothing or reject with an error message. I will have to read the Standard and try to understand this a little better.