From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B525B3858D28; Mon, 25 Apr 2022 21:13:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B525B3858D28 From: "andre at kostur dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/103993] -Wismatched-new-delete due to difference in inlining decisions Date: Mon, 25 Apr 2022 21:13:43 +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: 11.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: andre at kostur dot net 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: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2022 21:13:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103993 andre at kostur dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andre at kostur dot net --- Comment #3 from andre at kostur dot net --- Here's a smaller, minimal example of the issue (as described in the subject= ): #include struct Foo { static void * operator new( size_t s ) __attribute__( ( noinline ) ) { return ::operator new( s ); } static void operator delete( void * p ) { return ::operator delete( p );= } }; int main() { Foo * f =3D new Foo(); delete f; }=