[Bug libstdc++/100298] [11/12 Regression] noexcept is missing for thread::hardware_concurrency clang refuses the code

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 28 11:55:59 GMT 2021


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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:

https://gcc.gnu.org/g:5cc28000cfcc219fb4c45dbc5388ec05109049af

commit r12-215-g5cc28000cfcc219fb4c45dbc5388ec05109049af
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Apr 28 12:45:49 2021 +0100

    libstdc++: Add missing noexcept on std::thread member function [PR 100298]

    The new inline definition of std::thread::hardware_concurrency() for
    non-gthreads targets is missing the noexcept-specifier that is on the
    declaration.

    libstdc++-v3/ChangeLog:

            PR libstdc++/100298
            * include/bits/std_thread.h (thread::hardware_concurrency): Add
            missing noexcept to inline definition for non-gthreads targets.


More information about the Gcc-bugs mailing list