Summary: | [4.5 Regression] Revision 147395 failed libstc++ tests | ||
---|---|---|---|
Product: | gcc | Reporter: | H.J. Lu <hjl.tools> |
Component: | libstdc++ | Assignee: | Paolo Carlini <paolo.carlini> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs, paolo.carlini |
Priority: | P3 | ||
Version: | 4.5.0 | ||
Target Milestone: | 4.5.0 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2009-05-14 17:12:11 |
Description
H.J. Lu
2009-05-12 15:01:43 UTC
Assigning to Honza basing on a comment on the mailing list... I tried to reproduce the equal.cc fail, for example, and it happens only at -O1 or above, as a "Floating point exception"... Before dealing with this a middle-end, let me double check the implementation, because I'm seeing something fishy... Indeed, very fishy: 1UL << 48. Patch forthcoming. Subject: Bug 40123 Author: paolo Date: Thu May 14 17:56:17 2009 New Revision: 147538 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147538 Log: 2009-05-14 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/40123 * random.tcc (independent_bits_engine<>::operator()()): Use result_type(1), not 1UL. * random.tcc (independent_bits_engine<>::operator()()): Use _M_b.max() and _M_b.min(), instead of this->max() and this->min(). * random.h (_ShiftMin1): Remove, adjust everywhere. * random.tcc: Minor cosmetic changes. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/random.h trunk/libstdc++-v3/include/bits/random.tcc Fixed. |