2 ! Tests the fix for PR33566, in which the first variable array ref
3 ! to v1 would cause an incompatible ranks error and the second an ICE.
5 ! Contributed by Mikael Morin <mikael.morin@tele2.fr>
16 real, dimension(3) :: coords
19 type(vec3),parameter :: v1 = vec3((/ 1.0, 2.0, 3.0 /))
22 v2 = vec3((/ 1.0, 2.0, 3.0 /))
28 x = v1%coords(i) ! used to fail
34 v2 = vec3 (v1%coords ((/i+1, i, i-1/))) ! also broken