1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
! { dg-do compile } ! { dg-options "-fallow-argument-mismatch -w" } ! PR fortran/107576 ! Contributed by G.Steinmetz program p implicit none interface subroutine r(y) integer, pointer :: y(:) end subroutine r end interface integer, pointer :: z(:) => null() call r(z) call s(z) call r(null(z)) call s(null(z)) ! { dg-error "requires an explicit interface" } end