https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110714
--- Comment #2 from Paul Keir <pkeir at outlook dot com> --- I know. `delete pf` also works. The issue seems to be with the use of the this pointer within the member function. This is just the MRE - I've come across this issue twice now in our code base.