public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45777] New: Missing temporary ?
@ 2010-09-24 10:45 Joost.VandeVondele at pci dot uzh.ch
  2010-09-24 10:46 ` [Bug fortran/45777] " Joost.VandeVondele at pci dot uzh.ch
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Joost.VandeVondele at pci dot uzh.ch @ 2010-09-24 10:45 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Missing temporary ?
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Joost.VandeVondele@pci.uzh.ch


this one seems like a missing temporary:

MODULE M1
 TYPE T1
   INTEGER, DIMENSION(:), ALLOCATABLE :: data
 END TYPE T1
CONTAINS
 SUBROUTINE S1(T,d)
   INTEGER, DIMENSION(:), POINTER :: d
   TYPE(T1), POINTER :: T
    d(1:5)=T%data(3:7)
 END SUBROUTINE
END MODULE

USE M1
TYPE(T1), POINTER :: T
INTEGER, DIMENSION(:), POINTER :: d
ALLOCATE(T)
ALLOCATE(T%data(10))
T%data=(/(i,i=1,10)/)
d=>T%data(5:9)
CALL S1(T,d)
IF (ANY(d.NE.(/3,4,5,6,7/))) CALL ABORT()
DEALLOCATE(T%data)
DEALLOCATE(T)
END

-- 
Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2011-01-16 11:48 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-24 10:45 [Bug fortran/45777] New: Missing temporary ? Joost.VandeVondele at pci dot uzh.ch
2010-09-24 10:46 ` [Bug fortran/45777] " Joost.VandeVondele at pci dot uzh.ch
2010-09-24 11:51 ` burnus at gcc dot gnu.org
2010-09-24 16:25 ` burnus at gcc dot gnu.org
2010-09-24 18:10 ` Joost.VandeVondele at pci dot uzh.ch
2010-09-25 16:46 ` burnus at gcc dot gnu.org
2010-11-30 16:59 ` [Bug fortran/45777] Alias analysis broken for arrays where LHS or RHS is a component ref tkoenig at gcc dot gnu.org
2010-12-29 22:04 ` tkoenig at gcc dot gnu.org
2010-12-30 14:56 ` mikael at gcc dot gnu.org
2010-12-30 16:15 ` tkoenig at gcc dot gnu.org
2011-01-03 11:50 ` tkoenig at gcc dot gnu.org
2011-01-03 23:43 ` tkoenig at gcc dot gnu.org
2011-01-04 12:33 ` tkoenig at gcc dot gnu.org
2011-01-08 10:07 ` tkoenig at gcc dot gnu.org
2011-01-08 11:39 ` tkoenig at gcc dot gnu.org
2011-01-16 11:50 ` tkoenig at gcc dot gnu.org
2011-01-16 12:03 ` tkoenig at gcc dot gnu.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).