https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121379
Bug ID: 121379 Summary: MODULE attribute required for submodule procedure with interface in parent module. Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: pault at gcc dot gnu.org Target Milestone: --- Found in the course of preparing the patch for the generic statement (Thanks Harald): module m interface g real module function realg (arg1, arg2) real, intent(in) :: arg1, arg2 end end interface contains end module m submodule (m) subm contains real function realg (arg1, arg2) ! gfortran happily compiles.... ! real module function realg (arg1, arg2) ! but other brands require this real, intent(in) :: arg1, arg2 realg = arg1 + arg2 end end Paul