http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49553
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-27 21:54:09 UTC --- No, the problem isn't in that typedef, which must be like that, per TR1. The problem is a limitation of the tr1::uniform_int which doesn't work for an UniformRandomNumberGenerator which generates numbers in a range smaller than the required uniform_int output range (see the XXX comment). Fixing that was not trivial, but it is now fixed in the C++0x uniform_int, whereas the TR1 code ad this time is frozen, I'm sorry, if you still want to use it, please work around the limitation (there are many ways).