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++/60555] std::system_category().default_error_condition() doesn't map system errno values to std::generic_category()


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60555

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Aug  1 13:57:05 2018
New Revision: 263210

URL: https://gcc.gnu.org/viewcvs?rev=263210&root=gcc&view=rev
Log:
PR libstdc++/60555 std::system_category() should recognise POSIX errno values

        PR libstdc++/60555
        * src/c++11/system_error.cc
        (system_error_category::default_error_condition): New override to
        check for POSIX errno values.
        * testsuite/19_diagnostics/error_category/generic_category.cc: New
        * testsuite/19_diagnostics/error_category/system_category.cc: New
        test.

Added:
   
trunk/libstdc++-v3/testsuite/19_diagnostics/error_category/generic_category.cc
   
trunk/libstdc++-v3/testsuite/19_diagnostics/error_category/system_category.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/src/c++11/system_error.cc

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