| 1 |
! { dg-do compile } |
| 2 |
! PR fortran/91565 |
| 3 |
! Contributed by Gerhard Steinmetz |
| 4 |
program 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." } |
| 7 |
end |
| 8 |
|
| 9 |
subroutine foo |
| 10 |
integer, parameter :: a(1) = 1 |
| 11 |
print *, reshape([1,2,3,4,5,6], [2,3], order=a) ! { dg-error "are different" } |
| 12 |
end |
| 13 |
|
| 14 |
subroutine 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" } |
| 17 |
end |