public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31204]  New: wrong code generated with gfortran
@ 2007-03-16 11:28 jv244 at cam dot ac dot uk
  2007-03-16 20:53 ` [Bug fortran/31204] " fxcoudert at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-03-16 11:28 UTC (permalink / raw)
  To: gcc-bugs

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

       MODULE mod
       INTEGER, PARAMETER :: jmin(1:10) = (/ (i, i = 1, 10) /)
       CONTAINS

       SUBROUTINE one
         i = 99
       END SUBROUTINE

       SUBROUTINE two
         i=0
         CALL one
         IF (i.NE.0) CALL ABORT()
       END SUBROUTINE

       END MODULE
       USE MOD
       CALL two
       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=31204


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

end of thread, other threads:[~2007-04-21 22:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 11:28 [Bug fortran/31204] New: wrong code generated with gfortran jv244 at cam dot ac dot uk
2007-03-16 20:53 ` [Bug fortran/31204] " fxcoudert at gcc dot gnu dot org
2007-04-06 11:50 ` [Bug fortran/31204] wrong host association of implied loop variable pault at gcc dot gnu dot org
2007-04-06 17:31 ` patchapp at dberlin dot org
2007-04-15 15:28 ` pault at gcc dot gnu dot org
2007-04-21 22:15 ` 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).