[Bug libstdc++/100298] New: noexcept is missing for thread::hardware_concurrency clang refuses the code
unlvsur at live dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 28 00:18:11 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100298
Bug ID: 100298
Summary: noexcept is missing for thread::hardware_concurrency
clang refuses the code
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: unlvsur at live dot com
Target Milestone: ---
In file included from In file included from
/home/cqwrteur/myhome/libstdcxx_wasm_build/include/bits/atomic_futex.h:39:
In file included from
/home/cqwrteur/myhome/libstdcxx_wasm_build/include/mutex:47:
In file included from
/home/cqwrteur/myhome/libstdcxx_wasm_build/include/thread:43:
/home/cqwrteur/myhome/libstdcxx_wasm_build/include/bits/std_thread.h:273:31:
error: 'hardware_concurrency' is missing exception specification 'noexcept'
inline unsigned int thread::hardware_concurrency() { return 0; }
^
/home/cqwrteur/myhome/libstdcxx_wasm_build/include/bits/std_thread.h:196:5:
note: previous declaration is here
hardware_concurrency() noexcept;
^
1 warning and 1 error generated.
1 warning generated.
2 warnings generated.
1 warning and 1 error generated.
4 warnings generated.
make[3]: *** [Makefile:648: future.lo] Error 1
5 warnings generated.
make[3]: *** [Makefile:648: futex.lo] Error 1
More information about the Gcc-bugs
mailing list