https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111750
Brian Bi <bbi5291 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bbi5291 at gmail dot com --- Comment #2 from Brian Bi <bbi5291 at gmail dot com> --- I believe I'm seeing the same bug on GCC trunk on Godbolt. Here's a minimized version of the code I'm working with: ``` struct TestObject { void f() const { } }; struct TestPtr { inline static const TestObject p; }; void (TestObject::*pmf)() const = &TestObject::f; void doTest() { ((&(TestPtr().p))->*(pmf))(); } ```