// PR c++/51494, c++/56222// Uses of static members and creating pointers to members aren't odr-uses// of 'this'.// { dg-do compile { target c++11 } }structA{staticvoidf(){}staticinti;intj;voidf(int);voidfoo(){[](){++i;f();&A::j;(void(*)())&A::f;};}};