Ignoring overflows, the following program would run for ever. NAG f95 prints the Warning: DO loop has zero iteration count
integer :: i
do i = 1, -3, 1
end do
end
--
Summary: Add warning for endless loops
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38432
