! { dg-do run }! { dg-options "-fbounds-check" }! { dg-shouldfail "Array reference out of bounds" }! PR fortran/31627subroutinefoo(a)integera(*), i
i =0a(i) =42end subroutine foo
program test
integerx(42)callfoo(x)end program test
! { dg-output "Index '0' of dimension 1 of array 'a' below lower bound of 1" }