https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116828

            Bug ID: 116828
           Summary: Gfortran 14.0.1 thinks that [ 1 + 1 = 0 ]
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 8e3g6jay6 at mozmail dot com
  Target Milestone: ---

I don't know what else to really say about this. Here's the whole program:

program oh_no
  use, intrinsic :: iso_c_binding
  implicit none

  integer(c_int) :: i, w

  w = 1

  do i = 1,1000
    w = w + w
  end do

  ! IT'S 0?!
  print*,w
end program oh_no

Reply via email to