From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B6EBD385773C; Tue, 18 Jul 2023 12:58:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B6EBD385773C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689685129; bh=YQvmvKUm42CJOwShGsKnXzmbzq3B4SVwzVJ0d809RG4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WRrrMiBpW2SMagynrUkAJLtyrvpKXCuVijHMj+a/y690xDL4X1FaqljVOJgcsQ0p3 mZGxfNueV9eZ3RJ4AEuYqEVcsl7c/r5F1gBPH2EDRkJRlh5NMOL2GCoqhBqh19SAAo XzfIybP5E5Un2dz/9ZsWMLpvvjtu3CWabvMrFYw4= From: "pkeir at outlook dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110714] constexpr lifetime error: base class this pointer Date: Tue, 18 Jul 2023 12:58:49 +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: 14.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: pkeir at outlook dot com 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: 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=3D110714 --- Comment #2 from Paul Keir --- I know. `delete pf` also works. The issue seems to be with the use of the t= his pointer within the member function. This is just the MRE - I've come across this issue twice now in our code base.=