[Bug fortran/92913] Add argument-mismatch check for INTERFACE for non-module procedures in the same file

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jul 11 08:31:46 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92913

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
The first part has now been fixed with the fix for PR 27318,
r11-1814-gcc9a9229285a26ac12bc8de53237ce9c4d42f867 .

The second test case, where interfaces are checked vs. interfaces,

subroutine sub_1()
   interface
     subroutine bar(x)
       integer :: x
     end subroutine bar
   end interface
end subroutine sub_1

subroutine sub_2()
   interface
     subroutine bar()  ! arg mismatch
     end subroutine bar
   end interface
end subroutine sub_2

subroutine sub_3
   external bar
   integer bar  ! function vs. subroutine mismatch
end subroutine sub_3

is not yet reported.
~


More information about the Gcc-bugs mailing list