i...@linux-fd1f:~/Krempel/Compare> cat op.f90
program main
  integer, volatile :: j
  if (j>j) call notfound
end program main
i...@linux-fd1f:~/Krempel/Compare> gfortran op.f90

The call to notfound should not be elided.

           Summary: VOLATILE not honored in comparison
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


Reply via email to