https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66409
--- Comment #12 from kargl at gcc dot gnu.org --- (In reply to Jeff Hammond from comment #11) > > program foo > > use f > > integer i > > call test(i) > > end program > > > > which specific subroutine is called based on TKR? > > I understand there is an ambiguity here, but what if I never make this call? > Is the module code incorrect? > 21-007.pdf:C1514 is sufficiently opaque that I cannot easily decide if a compiler needs to catch this or not. OTOH, the TKR information is present during compilation, it would seem appropriate that a compiler will complain about the issue. BTW, the original code from Chris MacMackin compiles, so at least that portion of the PR has been fixed.