------- Comment #7 from burnus at gcc dot gnu dot org  2010-02-19 21:20 -------
(In reply to comment #3)
> This could be somewhat similar, I really wonder if this needs a temp:
> 
> TYPE T1
>  INTEGER :: a(3)
> END TYPE T1
> TYPE(T1), POINTER :: x,y
> ALLOCATE(x,y)
> x%a=y%a
> END

I think one needs a temporary, cf. the following code:

integer, pointer :: a(:),b(:)
allocate(a(3))
a = [1,2,3]
b => a(3:1:-1)
a = b
print *, a
end


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36933

Reply via email to