[Bug fortran/50790] New: ICE in copy_constant on divide by expression that evaluates to zero
jonathan.hogg at stfc dot ac.uk
gcc-bugzilla@gcc.gnu.org
Wed Oct 19 11:41:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: jonathan.hogg@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.
More information about the Gcc-bugs
mailing list