From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4D01D3846402; Wed, 28 Apr 2021 00:18:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D01D3846402 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/100298] New: noexcept is missing for thread::hardware_concurrency clang refuses the code Date: Wed, 28 Apr 2021 00:18:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2021 00:18:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100298 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=