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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jonathan Wakely
<r...@gcc.gnu.org>:

https://gcc.gnu.org/g:b90b39a33154949979def3117ca868950ce8025c

commit r9-9778-gb90b39a33154949979def3117ca868950ce8025c
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Sep 22 11:58:20 2021 +0100

    libstdc++: std::system_category should know meaning of zero [PR102425]

    Although 0 is not an errno value, it should still be recognized as
    corresponding to a value belonging to the generic_category().

    Signed-off-by: Jonathan Wakely <jwak...@redhat.com>

    libstdc++-v3/ChangeLog:

            PR libstdc++/102425
            * src/c++11/system_error.cc
            (system_error_category::default_error_condition): Add 0 to
            switch.
            * testsuite/19_diagnostics/error_category/102425.cc: New test.

    (cherry picked from commit ce01e2e64c340dadb55a8a24c545a13e654804d4)

Reply via email to