]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/60555 std::system_category() should recognise POSIX errno values
authorJonathan Wakely <jwakely@redhat.com>
Wed, 1 Aug 2018 13:57:05 +0000 (14:57 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 1 Aug 2018 13:57:05 +0000 (14:57 +0100)
commit5ecfbf82a49d5522f4c55c3fedd70759687bbeaf
tree5bea65a26b95389b3fb26d8d65caee7fc61999fc
parente335138daee76c6c2cd434cf00fe5dbf886d1261
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.

From-SVN: r263210
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/system_error.cc
libstdc++-v3/testsuite/19_diagnostics/error_category/generic_category.cc [new file with mode: 0644]
libstdc++-v3/testsuite/19_diagnostics/error_category/system_category.cc [new file with mode: 0644]