From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D4EF93858D38; Mon, 29 May 2023 01:03:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4EF93858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685322224; bh=GU8nb0yH3Fa70+hl1wXz5gPUKv2iDOLY5bOR4nknfu0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tHeORZidm66lSOWyJiUkuq15Nkm7UVSl+x0Kk1i606ULCAVojPzgmgRmk++Mkvryn au8evxORCq7VCbqdRY+w3ZP7AjcP6EbZEZzMVreQEm2X79Cg1dxsDncSofIDdvh9Gw VFbGctkfIKdwKbgQfLiArBdketXWqalEWluP2E8E= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/110016] Possible miscodegen when inlining std::condition_variable::wait predicate causes deadlock Date: Mon, 29 May 2023 01:03:44 +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: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110016 --- Comment #3 from Andrew Pinski --- When you say you compiled with clang, did you use libstdc++ or libc++? Did you try adding gnu::always_inline attribute on the lambda to see if it fails there too? Again the inlining should not have an effect here except if there is some k= ind of race condition happening.=