[Bug fortran/31204] New: wrong code generated with gfortran

jv244 at cam dot ac dot uk gcc-bugzilla@gcc.gnu.org
Fri Mar 16 11:28:00 GMT 2007


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



More information about the Gcc-bugs mailing list