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