https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115884
Bug ID: 115884 Summary: overload when one specific subroutine has no arguments Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: john.harper at vuw dot ac.nz Target Milestone: --- Created attachment 58639 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58639&action=edit The program: In this program the generic name g has two specific subroutines s, t; s has no arguments, t has one, not optional. Four other compilers (AMD flang, ifort, ifx and lfortran will compile and run it but gfortran won't.