From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E3A273851C13; Fri, 20 Nov 2020 13:57:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3A273851C13 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/97876] stop_token header doesn't compile on clang-8 with -std=c++20 Date: Fri, 20 Nov 2020 13:57:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: 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: Fri, 20 Nov 2020 13:57:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97876 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #12 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #2) > Changing the _Stop_state_ref default constructor to: >=20 > _Stop_state_ref() noexcept {} >=20 > allows it to compile. It shouldn't be needed, but I suppose since the > constructor is already non-trivial (due to the default member initializer > that is the cause of the error) we could do that. I've done this on the gcc-10 branch, but not trunk. That means the same pro= blem will recur with clang-8 and in gcc-11. However, I've also removed the dependency from on gcc-10 and trunk, and already stopped including = on trunk. So there are fewer routes to now. Now you just need to wait for Ubuntu to update gcc-10 and for GitHub to dep= loy that update, which I can't help with.=