1! { dg-do compile } 2! PR fortran/91565 3! Contributed by Gerhard Steinmetz 4program p 5 integer, parameter :: a(2) = [2,2] 6 print *, reshape([1,2,3,4,5,6], [2,3], order=a) ! { dg-error "ORDER at .1. is not a permutation of the size of SHAPE at .2." } 7end 8 9subroutine foo 10 integer, parameter :: a(1) = 1 11 print *, reshape([1,2,3,4,5,6], [2,3], order=a) ! { dg-error "are different" } 12end 13 14subroutine bar 15 integer, parameter :: a(1,2) = 1 16 print *, reshape([1,2,3,4,5,6], [2,3], order=a) ! { dg-error "are different" } 17end 18