This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/56937] Unnecessarily temporary with array-vector assignments


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

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-04-30 12:15:00 UTC ---
> Currently, we do not support assigning values to variables
> and then later using the values for dependency analysis.
> ...

What about

integer :: r(10)
r = [(i+10,i=1,10)]
r([1, 2, 3, 4]) = r([6, 7, 8, 9])
print *, r
end

r([1, 2, 3, 4]) = r([6, 7, 8, 9])
                  1
Warning: Creating array temporary at (1)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]