public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50790] New: ICE in copy_constant on divide by expression that evaluates to zero
@ 2011-10-19 11:41 jonathan.hogg at stfc dot ac.uk
  2011-10-19 15:24 ` [Bug middle-end/50790] " burnus at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jonathan.hogg at stfc dot ac.uk @ 2011-10-19 11:41 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-19  4:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-19 11:41 [Bug fortran/50790] New: ICE in copy_constant on divide by expression that evaluates to zero jonathan.hogg at stfc dot ac.uk
2011-10-19 15:24 ` [Bug middle-end/50790] " burnus at gcc dot gnu.org
2011-10-19 17:55 ` kargl at gcc dot gnu.org
2021-12-19  4:17 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).