From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 231493858D37; Sun, 9 Oct 2022 17:49:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 231493858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665337754; bh=Mi/zsGrebrZ4U5S3Yyxe5Fjjdn/HLNrqPLpUMeJgQpg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wKOhhwgmclGudEANJoTbWEovVbM6gH97NkanX3fGKgEbt9hXsgfCOIImUuPtG/f3i BpsfY8rtvZ4W7Oe/WkH2RFYNmsWp2sDM24VV5/hazDyDif4nfnv2xvF7P0RD0u1Ku0 EPm+ofFj0MO4VRbMqzsfW6JecwyKH/8Mf+j5as78= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/106665] Cannot pass barrier by reference Date: Sun, 09 Oct 2022 17:49:13 +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.1.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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_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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106665 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Jonathan Wakely --- I didn't see this when it got reported. It is definitely a race condition. UBsan is telling you about a real bug in the program.=