[gnu.g++.lib.bug] Random classes in libg++ 1.34.0

mikeb@ee.ubc.ca (Mike Bolotski) (03/28/89)

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

mdt@YAHI.STANFORD.EDU (Michael Tiemann) (03/29/89)

Does compiling test10 without optimization (just that one file) help?

Michael