From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15167 invoked by alias); 2 Mar 2002 23:09:46 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 14911 invoked from network); 2 Mar 2002 23:09:40 -0000 Received: from unknown (HELO imf22bis.bellsouth.net) (205.152.58.62) by sources.redhat.com with SMTP; 2 Mar 2002 23:09:40 -0000 Received: from the-means.net ([66.20.178.42]) by imf22bis.bellsouth.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20020302231101.EETL19878.imf22bis.bellsouth.net@the-means.net> for ; Sat, 2 Mar 2002 18:11:01 -0500 Received: (qmail 11826 invoked from network); 2 Mar 2002 23:09:39 -0000 Received: from milo.local.net (HELO milo.meanshome.net) (dmeans@192.168.9.1) by milo.local.net with SMTP; 2 Mar 2002 23:09:39 -0000 Subject: Re: Strange behavior From: David Means To: cygwin@cygwin.com In-Reply-To: <003501c1c22f$cd7c9570$0300000a@FSHPXP> References: <003501c1c22f$cd7c9570$0300000a@FSHPXP> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-hgBkIOl6+uzRGxH8V19l" X-Mailer: Evolution/1.0.2 Date: Sat, 02 Mar 2002 15:09:00 -0000 Message-Id: <1015110579.11661.12.camel@milo> Mime-Version: 1.0 X-SW-Source: 2002-03/txt/msg00091.txt.bz2 --=-hgBkIOl6+uzRGxH8V19l Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-length: 1072 I don't think it's cygwin. Looks like something in gnu (complier or libs?). David --- 72$ uname -a && g++ --version && ./rtest2 Linux milo 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown 2.96 5/4 1 -1/4 1 3/8 1 2/3 0 319$ uname -a && g++ --version ; ./rtest2 SunOS opus 5.7 Generic sun4u sparc SUNW,Ultra-1 2.95.3 5/4 1 -1/4 1 3/8 1 2/3 1 On Sat, 2002-03-02 at 16:18, Chuck Allison wrote: > I have a simple Rational number class and have discovered weird behavior > with Cygwin's g++. If you look at the very short main program in file > rtest2.cpp, you will see by the output that g++ get's the wrong answer for >=20 > r1 / r2 =3D=3D Rational(2,3); // should be true >=20 > even though it prints as 2/3! Borland and Microsoft get it right. Any ide= as? > All code atached. >=20 > Thanks. >=20 > -- Chuck Allison (The Harmonious CodeSmith) > -- Senior Editor, C/C++ Users Journal > -- cda@freshsources.com >=20 > ---- >=20 { snip } --=20 No trees were killed in the sending of this message. However, a large number of electrons were terribly inconvenienced. --=-hgBkIOl6+uzRGxH8V19l Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part Content-length: 240 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEABECAAYFAjyBW7MACgkQUd0KwqAz4apKPwCgnJiTdID4TJbHpt4baGigqS9r M9YAn3dBwD4GNGtE0/RAnRxh61xUU9Hl =Rz7k -----END PGP SIGNATURE----- --=-hgBkIOl6+uzRGxH8V19l--