Opened 20 years ago

Closed 20 years ago

#117 closed Bugs (Rejected)

GCC fails w/lagged_fibonacci

Reported by: nobody Owned by: jmaurer
Milestone: Component: random
Version: None Severity:
Keywords: Cc:

Description

In the following code, the default constructor of 
lagged_fibonacci fails:

boost::lagged_fibonacci607 fgen(331 /*<<--*/);
new boost::uniform_01< 
boost::lagged_fibonacci607>(fgen);

GCC 3.2 seems to make fgen a symbol of the wrong type 
if the 331 (or whatever int) is omitted, although the 
default constructor should do exactly the same.

Change History (1)

comment:1 by jmaurer, 20 years ago

Status: assignedclosed
Logged In: YES 
user_id=53943


In the 1.29 release branch, the above problem could
happen.  Please make sure to use 331u to make it
an unsigned type so that the compiler does not choose
the wrong overloaded constructor.

In the 1.30 branch, this should not happen any more
at all, I believe.

If this isn't conclusive, please attach the gcc
error message.
Note: See TracTickets for help on using tickets.