public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/97876] New: stop_token header doesn't compile on clang-8 with -std=c++20
@ 2020-11-17 17:29 eric.niebler at gmail dot com
  2020-11-17 19:19 ` [Bug libstdc++/97876] " redi at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: eric.niebler at gmail dot com @ 2020-11-17 17:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97876
           Summary: stop_token header doesn't compile on clang-8 with
                    -std=c++20
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eric.niebler at gmail dot com
  Target Milestone: ---

Compiling <stop_token> header with clang-8 in C++20 mode results in this:

In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/condition_variable:50:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/stop_token:404:7:
error: default member initializer for '_M_ptr' needed within definition of
enclosing class 'stop_token' outside of member functions
      _Stop_state_ref() = default;
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/stop_token:478:21:
note: in evaluation of exception specification for
'std::stop_token::_Stop_state_ref::_Stop_state_ref' needed here
    _Stop_state_ref _M_state;
                    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/stop_token:58:5:
note: in evaluation of exception specification for
'std::stop_token::stop_token' needed here
    stop_token() noexcept = default;
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/stop_token:475:22:
note: default member initializer declared here
      _Stop_state_t* _M_ptr = nullptr;
                     ^
1 error generated.

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

end of thread, other threads:[~2020-11-20 13:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17 17:29 [Bug libstdc++/97876] New: stop_token header doesn't compile on clang-8 with -std=c++20 eric.niebler at gmail dot com
2020-11-17 19:19 ` [Bug libstdc++/97876] " redi at gcc dot gnu.org
2020-11-17 19:22 ` redi at gcc dot gnu.org
2020-11-17 21:19 ` eric.niebler at gmail dot com
2020-11-18 17:09 ` redi at gcc dot gnu.org
2020-11-19 21:24 ` eric.niebler at gmail dot com
2020-11-19 21:39 ` redi at gcc dot gnu.org
2020-11-19 21:41 ` redi at gcc dot gnu.org
2020-11-19 22:54 ` redi at gcc dot gnu.org
2020-11-20 13:27 ` cvs-commit at gcc dot gnu.org
2020-11-20 13:49 ` cvs-commit at gcc dot gnu.org
2020-11-20 13:49 ` cvs-commit at gcc dot gnu.org
2020-11-20 13: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).