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