1 // PR c++/58829 2 // { dg-do compile { target c++11 } } 3 4 struct A { fA5 int f() {return 0;} 6 } a; 7 8 struct B { 9 template<int=0> struct C { 10 int i = a.f(); 11 }; 12 }; 13 B::C<> c; 14