From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4476A385828F; Thu, 1 Feb 2024 22:12:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4476A385828F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706825572; bh=epRwcJ/grme1bLtZAWM+o4eJlCWxHDr9SL3aU7b8gWI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Huw3bDr7xuRS2EDsdWeYzY68tiOTOPZU/YnkMISOFQzdNPzPO/rSBsFXfyBIphjG7 5c1YUosmlSW1+jFOY51QYaAsqHQLxq+JM/MbTtNEMT5V6HtzWyZzmqjtSiD1LiLwMt t0XCSw5ivDT5Mr0xF3mISQHHwsswktXUzs2nPDIg= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109559] [12/13/14 Regression] Unexpected -Wmaybe-uninitialized warning when inlining with system header Date: Thu, 01 Feb 2024 22:12:51 +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: 14.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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=3D109559 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #5 from Marek Polacek --- Sorry, that wasn't part of the test. ``` # 0 "" 3 struct function_base { has_trivial_copy_and_destroy() const; int functor; }; struct function1 : function_base { swap(function1) { has_trivial_copy_and_destroy(); } }; struct function : function1 { template operator=3D(Functor) { swap(*this); } }; # 4 "" struct FilonIntegral { double integrate() const; }; double FilonIntegral::integrate() const { function f1; f1 =3D [] {}; return 0; } ```=