This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56937] Unnecessarily temporary with array-vector assignments
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Apr 2013 12:15:00 +0000
- Subject: [Bug fortran/56937] Unnecessarily temporary with array-vector assignments
- Auto-submitted: auto-generated
- References: <bug-56937-4 at http dot gcc dot gnu dot org/bugzilla/>
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)