From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4A6043858C55; Tue, 1 Nov 2022 23:44:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A6043858C55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667346299; bh=nWVW7P6EsR1mnQChxuYpUzJaJyS+/690yGsRaKMKM1Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cXH77/j6eSvALNKOkSpKQ7fLaq9K73u7rIN08z3vKxpCFPPNHqBvKKcjy44W2OeQk AYF6NreDxylVaxCWWC/cf1z+pI0x3gD6hRckNYAcm+xXgazSePoy9/y/SclgvbwJCP a9Z/1gYlV+/aEKfsSGuHerDhnoXpWEzYdDkCwm9E= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84471] Instruction reordering happens in lambdas even with -O0 Date: Tue, 01 Nov 2022 23:44:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: see_also 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=3D84471 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D107504 --- Comment #3 from Andrew Pinski --- const char[19] & key [value-expr: [/app/example.cpp:9:34] __closure->__ke= y]; very similar issue to PR 107504. The VALUE_EXPR has a line info on it which gets copied when referencing key in other places. Either we should remove the line info on the VALUE_EXPR on creation or when doing the copy.=