blob: 99961f5a4ee408bd771820c524ac15449f64e75d [file] [log] [blame]
// PR c++/99790
// { dg-do compile { target c++17 } }
struct A;
struct B { void (*fn) (A *); };
template <typename T>
int foo (const T &);
struct A { int a; static constexpr B b{[] (A *n) { n->*&A::a = 2; }}; };
int a = foo (A::b);