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++/39802] std::num_get fails to parse negative zero input correctly



------- Comment #2 from paolo at gcc dot gnu dot org  2009-04-18 19:28 -------
Subject: Bug 39802

Author: paolo
Date: Sat Apr 18 19:28:40 2009
New Revision: 146323

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146323
Log:
2009-04-18  Paolo Carlini  <paolo.carlini@oracle.com>

        PR libstdc++/39802
        * include/bits/locale_facets.tcc (num_get<>::_M_extract_int
        (_InIter, _InIter, ios_base&, ios_base::iostate&, _ValueT&)):
        Always accept negative values, for unsigned types too.
        * testsuite/22_locale/num_get/get/char/39802.cc: New.
        * testsuite/22_locale/num_get/get/wchar_t/39802.cc: Likewise.

Added:
    trunk/libstdc++-v3/testsuite/22_locale/num_get/get/char/39802.cc
    trunk/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/39802.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/locale_facets.tcc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39802


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