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

             Bug #: 50790
           Summary: ICE in copy_constant on divide by expression that
                    evaluates to zero
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: jonathan.h...@stfc.ac.uk


The following code produces an ICE for me:

program test
   implicit none

   integer :: i

   i = 3

   print *, "chk", 3/(i-i)
end program test

This should presumably produce
   Error: Division by zero
at compile time (or run time if we're not being clever).

Produced with:
GNU Fortran (Debian 4.6.1-4) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.

Thanks,
Jonathan.

Reply via email to