From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8C9693855587; Fri, 21 Jul 2023 22:26:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C9693855587 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689978360; bh=FIYwkhLXWQRwv3PE6p4Qf15BfLHxWojAC69C+xnJ8a4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lgjDEhR4OJu30v1i+AZ4qBF7B1gAFOdlI9IntzCpDZoWLjAQRh7CZRJkDZb7H/enf qjajvH66MqoDUQUan4F7bfqWzuWiS/2To8yMGXQlTa8zmwed9BcrXLrel31NtCnQCX dgaQhibgXsygz/KQ8JmWTEP/L90+O73xunjVz7WY= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110764] [12/13/14 Regression] False positive -Warray-bounds warning swapping std::thread::id Date: Fri, 21 Jul 2023 22:25:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.3.1 X-Bugzilla-Keywords: diagnostic 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=3D110764 --- Comment #5 from Andrew Pinski --- (In reply to Maxim Egorushkin from comment #3) > The original correct reproduction: >=20 > #include > #include >=20 > void g(int); >=20 > void f() { > std::vector threads(1); > threads[0] =3D std::thread(g, 42); // Compiler error comes from this > statement. > threads[0].join(); > } Can you provide the preprocessed source? Since I can't seem to reproduce it with the above.=