public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/3097: Divide by zero does not work with long
@ 2001-06-08 16:56 aneesha
  0 siblings, 0 replies; 2+ messages in thread
From: aneesha @ 2001-06-08 16:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3097
>Category:       java
>Synopsis:       Divide by zero does not work with long
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 08 16:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Aneesh Aggarwal
>Release:        gcc version 3.1 20010601 (experimental)
>Organization:
>Environment:
Linux 2.4 on x86
>Description:
On division by zero for a long, NO exception is thrown.
The program crashes.
It, however, works correctly for int.
>How-To-Repeat:
public class div_test {
     public static void main(String [] args) {
        long a = 10, b = 0;
        try {
           a = a/b;
        }
        catch (java.lang.Exception e) {
           System.out.println("Div by zero working");
        }
     }
   }
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: java/3097: Divide by zero does not work with long
@ 2001-06-13 14:09 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2001-06-13 14:09 UTC (permalink / raw)
  To: aneesha, gcc-bugs, gcc-prs, java-prs, nobody, tromey

Synopsis: Divide by zero does not work with long

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Wed Jun 13 14:09:18 2001
Responsible-Changed-Why:
    I handled it.
State-Changed-From-To: analyzed->closed
State-Changed-By: tromey
State-Changed-When: Wed Jun 13 14:09:18 2001
State-Changed-Why:
    I've fixed this for the gcc 3.0 release.
    It remains broken for gcc 3.1 (the cvs trunk).
    I believe Andrew will be looking at a better
    way to fix the problem there.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3097&database=gcc


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

end of thread, other threads:[~2001-06-13 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-08 16:56 java/3097: Divide by zero does not work with long aneesha
2001-06-13 14:09 tromey

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).