public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43111]  New: [4.4, 4.5 regression] No temporary produced for array pointer actual arguments
@ 2010-02-18  5:33 pault at gcc dot gnu dot org
  2010-02-18  9:25 ` [Bug fortran/43111] [4.5 Regression] " burnus at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2010-02-18  5:33 UTC (permalink / raw)
  To: gcc-bugs

As reported by Joost VandeVondele, this does not compile correctly since my fix
for PR41113/7

Paul

SUBROUTINE S2(I)
 INTEGER :: I(4)
 write(6,*) I
 IF (ANY(I.NE.(/3,5,7,9/))) CALL ABORT()
END SUBROUTINE S2

MODULE M1
 TYPE T1
  INTEGER, POINTER, DIMENSION(:) :: data
 END TYPE T1
CONTAINS
 SUBROUTINE S1()
   TYPE(T1) :: d
   INTEGER, TARGET, DIMENSION(10) :: scratch=(/(i,i=1,10)/)
   INTEGER :: i=2
   d%data=>scratch(1:9:2)
   write(6,*) d%data(i:)
   CALL S2(d%data(i:))
 END SUBROUTINE S1
END MODULE M1

USE M1
CALL S1
END


-- 
           Summary: [4.4, 4.5 regression] No temporary produced for array
                    pointer actual arguments
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: pault at gcc dot gnu dot org
        ReportedBy: pault at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-02-23 17:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-18  5:33 [Bug fortran/43111] New: [4.4, 4.5 regression] No temporary produced for array pointer actual arguments pault at gcc dot gnu dot org
2010-02-18  9:25 ` [Bug fortran/43111] [4.5 Regression] " burnus at gcc dot gnu dot org
2010-02-18 10:26 ` pault at gcc dot gnu dot org
2010-02-20 12:47 ` pault at gcc dot gnu dot org
2010-02-20 12:48 ` pault at gcc dot gnu dot org
2010-02-23 17:06 ` hjl 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).