https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120140

--- Comment #14 from anlauf at gcc dot gnu.org ---
(In reply to anlauf from comment #13)
> This one fails:
> 
>    p%i = q%i
>    p([2,1]) = p([1,2])   ! fails
> 
> It prints:
> 
>  vector: p(1:2)%i =           1           2  (expect 44 43)

More variants:

   p%i = q%i
   p(2:1:-1) = p( 1:2 )   ! works

but

   p%i = q%i
   p([2,1])  = p( 1:2 )   ! fails

Somehow the temporary is not copied back correctly.

Reply via email to