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 #15 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-03-02 14:58:00 UTC ---
Author: paolo
Date: Wed Mar  2 14:57:57 2011
New Revision: 170616

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170616
Log:
2011-03-02  Marc Glisse  <marc.glisse@normalesup.org>

    PR libstdc++/47913
    * include/std/ratio (ratio_add): Avoid denominator overflow.
    * testsuite/20_util/ratio/operations/47913.cc: New.


Added:
    trunk/libstdc++-v3/testsuite/20_util/ratio/operations/47913.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/ratio


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