Thread View: gnu.g++.lib.bug
2 messages
2 total messages
Started by Stefan Naeher
Fri, 08 Jan 1993 11:49
Bug in Rational class of g++-2.3
Author: Stefan Naeher
Date: Fri, 08 Jan 1993 11:49
Date: Fri, 08 Jan 1993 11:49
23 lines
1155 bytes
1155 bytes
Class Rational seems to have problems with zero values, e.g., the following
program exits with the error message "Rational Error: Zero denominator"
#include <Rational.h>
main()
{
Rational r1 = 17;
Rational r = r1 - 0;
}
Is this a known bug, can it be fixed easily ?
-------------------------------------------------------------------------------
Stefan N"aher e-mail: stefan@mpi-sb.mpg.de
Max-Planck-Institut f"ur Informatik phone: +49 681 302 5420
Im Stadtwald fax: +49 681 302 5401
6600 Saarbr"ucken
Germany
-------------------------------------------------------------------------------
Re: Bug in Rational class of g++-2.3
Author: bothner
Date: Sat, 09 Jan 1993 10:25
Date: Sat, 09 Jan 1993 10:25
6 lines
604 bytes
604 bytes
> Is this a known bug, can it be fixed easily ? It is not known to me. Could you track it down, please? --Per Bothner Cygnus Support bothner@cygnus.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads