1! { dg-do compile }
2! Tests the fix for PR30514 in which the bounds on m would cause an
3! error and the rest would cause the compiler to go into an infinite
4! loop.
5! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
6!
7integer :: i(2:0), j(1:0), m(1:-1)
8integer, parameter :: k(2:0) = 0, l(1:0) = 0
9i = k
10j = l
11m = 5
12end
13
14