Bug in gdc-4.3 std.random? [was: Re: Status updates (and PPA packages) for gdc]
Joseph Wakeling
joseph.wakeling at gmail.com
Mon May 3 08:22:57 PDT 2010
Dear Iain,
I finally got round to installing gdc-4.3 from your PPA and had a try.
Unfortunately, first thing I ran into an error while compiling:
-------------------------------------------
/usr/lib/gcc/i486-linux-gnu/4.3.4/../../../../include/d2/4.3.4/std/random.d:652:
function
std.random.UniformDistribution!(double,boundaries).UniformDistribution.opCall
(double a, double b) does not match parameter types
(double,MersenneTwisterEngine!(uint,32,624,397,31,-1727483681u,11,7,-1658038656u,15,-272236544u,18))
/usr/lib/gcc/i486-linux-gnu/4.3.4/../../../../include/d2/4.3.4/std/random.d:652:
Error: cannot implicitly convert expression (b) of type
MersenneTwisterEngine!(uint,32,624,397,31,-1727483681u,11,7,-1658038656u,15,-272236544u,18)
to double
-------------------------------------------
The same code compiles without a whisper with dmd so I'm guessing this is an error
in Phobos 2.015 ... ?
Best wishes,
-- Joe
More information about the D.gnu
mailing list