https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98413

--- Comment #1 from 欢乐的0403 <475647575 at qq dot com> ---
// A smaller example:
#include <new>
struct A{
    int m;
};

A a;
void f(int A::*member_pointer)
{
    new (&(a.*member_pointer)) int;
}
//https://godbolt.org/z/KhPq9e

Reply via email to