blob: f3bfb04b2c827891004cf243d5782703a6730bd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
! { dg-do compile }
! PR fortran/36803
! PR fortran/36795
!
! "(n)" was simplified to the EXPR_VARIABLE "n"
! and thus "(n)" was judged as definable.
!
interface
subroutine foo(x)
character, intent(out) :: x(:) ! or INTENT(INOUT)
end subroutine foo
end interface
character :: n(5)
call foo( (n) ) ! { dg-error "Non-variable expression" }
end
|