public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36928]  New: array temporary for interleaving assignment
@ 2008-07-25  6:55 tkoenig at gcc dot gnu dot org
  2010-06-01  5:30 ` [Bug fortran/36928] array temporary for interleaving assignment with non-constant start values tkoenig at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-07-25  6:55 UTC (permalink / raw)
  To: gcc-bugs

The temporary is not needed in this case.

$ cat foo.f90
program main
  real, dimension(10) :: a
  read (10) a
  a(2:10:2) = a (1:9:2)
end program main
$ gfortran -Warray-temporaries foo.f90
foo.f90:4.14:

  a(2:10:2) = a (1:9:2)
             1
Warning: Creating array temporary at (1)


-- 
           Summary: array temporary for interleaving assignment
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-09  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-36928-4@http.gcc.gnu.org/bugzilla/>
2013-08-09  8:03 ` [Bug fortran/36928] array temporary for interleaving assignment with non-constant start values tkoenig at gcc dot gnu.org
2008-07-25  6:55 [Bug fortran/36928] New: array temporary for interleaving assignment tkoenig at gcc dot gnu dot org
2010-06-01  5:30 ` [Bug fortran/36928] array temporary for interleaving assignment with non-constant start values tkoenig at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).