This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/47913] [C++0x] improve ratio_add to overflow less often


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]