🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
1 messages
1 total messages Started by Neil McKellar Wed, 14 Oct 1992 09:26
libg++-2.2 test suite
#298
Author: Neil McKellar
Date: Wed, 14 Oct 1992 09:26
28 lines
1445 bytes
Hi.  I am installing libg++-2.2 on an SGI running IRIX 4.0.4 using gcc 2.2.2.
I ran configure.

  % configure mips-sgi-irix4.0.4
  % make

It compiled fine, so I decided to run the test suite.

  % make check

Things went fine until we got to tComplex.cc in libg++/tests.
tComplex.cc compiles fine, but fails on

  a / b = (0.5609760976, 0.0487804878)

  where a = (2.0, 3.0)
        b = (4.0, 5.0)

At this point, close_enough() fails to assert() and dumps core.
Since the division by (1,0) earlier in the test succeeded, I can't understand
why this calculation fails.  Everything has been done using doubles for the
real values, so a loss of accuracy should not be the problem.

It seems strange that anything in the test suite should fail.  I imagine this
stuff is fairly well proven.  Have I done something silly during setup?
Any help or ideas about this would be appreciated.  Thanks in advance.

Neil McKellar (mckellar@cs.ualberta.ca)
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