1// PR c++/56639
2
3struct A {
4  int i;
5  static A* f();
6};
7
8struct B {
9  void g() {
10    int (A::f()->i);
11  }
12};
13