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

call s(-3)
call s(2**18)
contains
subroutine s(i)
character(LEN=I) a
IF(LEN(a).NE.MAX(0,I)) 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=31203

Reply via email to