1! { dg-do compile } 2program p 3 integer :: n = 1 4 character(3), parameter :: x(2) = ['abc', 'xyz'] 5 character(2), parameter :: y(2) = [x(2)(2:3), x(n)(1:2)] ! { dg-error "CHARACTER length must be a constant" } 6end 7