public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/100298] New: noexcept is missing for thread::hardware_concurrency clang refuses the code
@ 2021-04-28  0:18 unlvsur at live dot com
  2021-04-28 11:45 ` [Bug libstdc++/100298] [11/12 Regression] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: unlvsur at live dot com @ 2021-04-28  0:18 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-28 11:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28  0:18 [Bug libstdc++/100298] New: noexcept is missing for thread::hardware_concurrency clang refuses the code unlvsur at live dot com
2021-04-28 11:45 ` [Bug libstdc++/100298] [11/12 Regression] " redi at gcc dot gnu.org
2021-04-28 11:55 ` cvs-commit at gcc dot gnu.org
2021-04-28 11:56 ` cvs-commit at gcc dot gnu.org
2021-04-28 11:57 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).