I'm trying to figure out why the placement of a scalar before a do construct inside an array constructor produces the answer it does.
I understand the do construct in general, that (/(i,i=1,5)/) is equivalent to (/1,2,3,4,5/).
real, dimension(4) :: a
integer :: i
a=(/(50,i,i=1,2)/)
This produces the array 50.0000000, 1.00000000, 50.0000000, 2.00000000. At best I would expect an error because the step size doesn't produce enough values to fill the array.