From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 260413F28A for ; Mon, 2 Dec 2002 18:36:45 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gB2NajA20963 for axp-list@listman.redhat.com; Mon, 2 Dec 2002 18:36:45 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id gB2NaiD20959 for ; Mon, 2 Dec 2002 18:36:44 -0500 Received: from mailout6-0.nyroc.rr.com (syr-24-92-226-125.nyroc.rr.com [24.92.226.125]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gB2NBoP24212 for ; Mon, 2 Dec 2002 18:11:51 -0500 Received: from roc-24-58-80-193.rochester.rr.com (roc-24-58-80-193.rochester.rr.com [24.58.80.193]) by mailout6-0.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP id gB2Nadk09093 for ; Mon, 2 Dec 2002 18:36:43 -0500 (EST) Date: Mon, 2 Dec 2002 18:36:39 -0500 (EST) From: "Andrew A. Gill" X-X-Sender: superluser@res104a-017.rh.rit.edu To: AXP-list Subject: is this feature documented? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: I was working with Kai Sterker (well, asking for help) on a floating point exception in the Adonthell program, when she noticed this interesting feature: [superluser@trystero superluser]$ cat fpe.cc #include int main(void) { int x = (int) (4/(float)0); printf ("x = %i\n", x); } [superluser@trystero superluser]$ g++ fpe.cc fpe.cc: In function `int main()': fpe.cc:5: warning: division by zero in `4 / 0.' [superluser@trystero superluser]$ ./a.out x = 0 This is gcc version 3.2 20021115 (Red Hat Linux 8.0 3.2-14). Should this be normal behavior? Is this the expected output of standard C++? -- |Andrew A. Gill |I posted to Silent-Tristero and| | |all I got was this stupid sig! | |alt.tv.simpsons CBG-FAQ author | | | (Report all obscene mail to Le Maitre Pots)| |Nothing here yet: Temporary sig: -- Could be less broken...