The number of buckets is currently limited to ~2^32 (see X<>::primes). This is a serious issue: for correctness, rehash(n) for n > 2^32 should throw and do nothing, in order not to violate the post-conditions in Table 21.
We have various options: as suggested by Howard off-line, we could well compute at run-time prime-numbers. Otherwise, mid-term, if we cannot extend the maximum number of bucket we have to add throws to the rehashing functions. -- Summary: tr1/unordered vs 64-bit machines Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pcarlini at suse dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26424