public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31200]  New: wrong code generated with gfortran
@ 2007-03-16 11:27 jv244 at cam dot ac dot uk
  2007-03-16 14:07 ` [Bug fortran/31200] wrong code: procedure call with pointer-returning-function as argument burnus at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-03-16 11:27 UTC (permalink / raw)
  To: gcc-bugs

With a recent gfortran, the following compiles, but generates the wrong
results:

  REAL,TARGET :: x
  CALL s3(f(x))
CONTAINS
  FUNCTION f(a)
    REAL,POINTER :: f
    REAL,TARGET :: a
    f => a
  END FUNCTION
  SUBROUTINE s3(targ)
    REAL,TARGET :: targ
    REAL,POINTER :: p
    p => targ
    IF (.NOT. ASSOCIATED(p,x)) CALL ABORT()
  END SUBROUTINE
END


-- 
           Summary: wrong code generated with gfortran
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

end of thread, other threads:[~2007-03-24 14:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 11:27 [Bug fortran/31200] New: wrong code generated with gfortran jv244 at cam dot ac dot uk
2007-03-16 14:07 ` [Bug fortran/31200] wrong code: procedure call with pointer-returning-function as argument burnus at gcc dot gnu dot org
2007-03-16 17:10 ` pault at gcc dot gnu dot org
2007-03-17 15:53 ` pault at gcc dot gnu dot org
2007-03-21 17:13 ` burnus at gcc dot gnu dot org
2007-03-24  8:10 ` patchapp at dberlin dot org
2007-03-24 12:31 ` pault at gcc dot gnu dot org
2007-03-24 13:58 ` pault at gcc dot gnu dot org
2007-03-24 14:18 ` pault 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).