Debian Codegraph @

gcc/testsuite/g++.dg/template/non-dependent29.C

raw
1 // PR c++/112427
2
3 struct A { int m; void f(); };
4 struct B { A a; };
5
6 template<class T>
7 void f(B b) {
8 int A::*pd = &A::m;
9 b.a.*pd;
10
11 void (A::*pf)() = &A::f;
12 (b.a.*pf)();
13 }