2 ! { dg-additional-options "-Wdo-subscript" }
3 ! PR 90563 - this used to be rejected, wrongly
4 ! Original test case by Tobias Neumann
7 integer, parameter :: swap(4) = [2,1,3,4]
13 ! The following warnings are actually bogus, but we are not yet
14 ! clever enough to suppress them.
15 do j
=1,6 ! { dg-warning "out of bounds" }
17 p(j
) = p(swap(j
)) ! { dg-warning "out of bounds" }