home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!rpi!bu.edu!buphy.bu.edu!amelcuk
- From: amelcuk@buphy.bu.edu (Andre Melcuk)
- Newsgroups: comp.unix.aix
- Subject: xlf 2.3 and INTEGER overflow
- Message-ID: <105537@bu.edu>
- Date: 22 Dec 92 22:29:54 GMT
- Sender: news@bu.edu
- Organization: Boston University Physics Department
- Lines: 18
-
-
- It would seem from casual info-monster perusal that xlf
- doesn't catch integer overflow. Integer overflow is in fact
- mentioned in info explorer, but no switches are available, and
- the following simple program doesn't work as expected:
-
- write(*,*) 100000**2
-
- or, more realistically
-
- write(*,*) (144*2+450**2)/100000**2
-
- I understand that this code should not work (WELL, it's not MY
- code), but how can I trap such things?
-
- Thanks,
-
- Andrew Mel'cuk amelcuk@dirac.clarku.edu the victim of the 7206 MONSTER DAT
-