https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100298
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:aae5106525d850c5f3ae8265374ead16c5e0a9b7 commit r11-8316-gaae5106525d850c5f3ae8265374ead16c5e0a9b7 Author: Jonathan Wakely <jwak...@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. (cherry picked from commit 5cc28000cfcc219fb4c45dbc5388ec05109049af)