This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/47913] [C++0x] improve ratio_add to overflow less often
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 4 May 2011 23:27:49 +0000
- Subject: [Bug libstdc++/47913] [C++0x] improve ratio_add to overflow less often
- Auto-submitted: auto-generated
- References: <bug-47913-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47913
--- Comment #24 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-05-04 23:23:57 UTC ---
Author: paolo
Date: Wed May 4 23:23:54 2011
New Revision: 173400
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173400
Log:
2011-05-04 Marc Glisse <marc.glisse@normalesup.org>
PR libstdc++/47913 (again)
* include/std/ratio (ratio_add, ratio_less): Rewrite.
* testsuite/20_util/ratio/operations/47913.cc: Extend.
* testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust dg-error
line numbers.
* testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/std/ratio
trunk/libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc
trunk/libstdc++-v3/testsuite/20_util/ratio/operations/47913.cc
trunk/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc