// PR c++/58599 // { dg-do compile { target c++11 } } template struct A1; template<> struct A1<0> { template struct B1 { template int foo1() {} int i1 = foo1(); }; }; template struct A2; template<> struct A2<0> { template struct B2 { template int foo2() {} int i2 = foo2(); }; }; template struct A3; template<> struct A3<0> { template struct B3 { template int foo3() {} int i3 = foo3(); }; };