From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8cfb38ca39016d16 X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,8cfb38ca39016d16 X-Google-Attributes: gid1164f8,public From: srt@zaphod.csci.unt.edu (Steve Tate) Subject: Re: Possible BUG on Alpha C compiler? Date: 1995/12/01 Message-ID: <49ndhu$aue@hermes.acs.unt.edu>#1/1 X-Deja-AN: 120600931 distribution: world references: <49b0ad$d1i@no-names.nerdc.ufl.edu> followup-to: comp.unix.osf.osf1,comp.sys.dec organization: University of North Texas newsgroups: comp.unix.osf.osf1,comp.sys.dec Christos Siopis (siopis) wrote: > The program compiles without problem on a DEC Alpha OSF/1, but when > I run it, I get a ``floating exception'' error. I have pinpointed the > error to the following rather inconspicuous statement: > delta = c[j] - q; > Right before the statement is executed, j=0, c[j]=1.221301, q=0.000000 > and delta=533.333333. delta, q and c[1] are double variables and j is > integer. There's obviously nothing wrong with that statement using those values (and yes, it works fine on an Alpha) --- try to get the smallest COMPLETE program that has this same problem, so that it can be reproduced by others, and then maybe someone can help you. It's very likely that something in one of the preceding lines is actually causing the error.... -- Steve Tate --- srt@cs.unt.edu | "As often as a study is cultivated by narrow Dept. of Computer Sciences | minds, they will draw from it narrow University of North Texas | conclusions." -- John Stuart Mill, 1865. Denton, TX 76201 |