// PR c++/9228 // Origin: Wolfgang Bangerth // { dg-do compile } struct A { struct B { B(int); }; }; template typename A::B foo() { return 1; } // { dg-error "" }