🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
2 messages
2 total messages Started by Mike Bolotski Tue, 28 Mar 1989 07:36
Random classes in libg++ 1.34.0
#486
Author: Mike Bolotski
Date: Tue, 28 Mar 1989 07:36
38 lines
1820 bytes
Machine:   Sun 3/260   SunOs 4.0.1

Test10 fails as follows:

Script started on Mon Mar 27 22:56:08 1989
[coho-1] make test10
g++ -v -g -O -fchar-charconst -I/usr/local/lib/gnu/g++-include -c  test10.cc
g++ version 1.34.1
 /usr/local/lib/gnu/gcc-cpp -+ -v -I/usr/local/lib/gnu/g++-include -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__OPTIMIZE__ -D__HAVE_68881__ -Dmc68020 test10.cc /tmp/cca09998.cpp
GNU CPP version 1.34
 /usr/local/lib/gnu/gcc-c++ /tmp/cca09998.cpp -quiet -dumpbase test10.cc -fchar-charconst -opt -version -G -o /tmp/cca09998.s
GNU C++ version 1.34.1 (68k, MIT syntax) compiled by GNU C version 1.34.
 as -mc68020 /tmp/cca09998.s -o test10.o
g++ test10.o  -o test10 -lg++ -lm
[coho-2] test10
five random ACG integers:
1525072166 1954057046 3406008937 226879594 4107049426 
five random MLCG integers:
1341853672 83475514 936613571 888739672 2097844081 
Binomial r1( 100, 0.50, &gen1) ...
five samples:
Failed assertion result.d < 1.0 && result.d >= 0 at line 77 of `../g++-include/RNG.h'.
Abort (core dumped)
[coho-3] exit
[coho-4] 
script done on Mon Mar 27 22:57:51 1989


The same test passes with g++ 1.34.1 and libg++ 1.32.0


Mike Bolotski, Dept. of Electrical Engineering,
               University of British Columbia, Vancouver, Canada 
mikeb@ee.ubc.ca
mikeb%ee.ubc.ca@relay.ubc.ca
ee.ubc.ca!mikeb@uunet.uu.net
...!ubc-vision!ee.ubc.ca!mikeb
Random classes in libg++ 1.34.0 (test10 bug)
#489
Author: Michael Tiemann
Date: Tue, 28 Mar 1989 16:11
3 lines
565 bytes
Does compiling test10 without optimization (just that one file) help?

Michael
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