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
i...@linux-fd1f:~/Krempel/Compare>

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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45742

Reply via email to