https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97122
--- Comment #9 from kargl at gcc dot gnu.org --- (In reply to kargl from comment #7) > (In reply to kargl from comment #5) > > (In reply to Paul Thomas from comment #3) > > > > > > I have marked this as "waiting" pending a contrary interpretation. > > > > > > Cheers > > > > > > > Paul, > > > > I asked on the J3 mailing list about the code. > > > > https://mailman.j3-fortran.org/pipermail/j3/2023-May/014193.html > > I haven't had a response from a current member of J3. Bob Corbett, > a former member, believes the code is valid Fortran. Jeff Hammond > notes that Cray Fortran compiled the code. So, we have Cray, Intel > compile the code. NAG and gfortran reject it. I'm not sure if there > are any other compilers with submodule support. Malcolm Cohen from NAG has responded in the J3 list that it's a bug in nagfor, and the code in the bug report is conforming Fortran.