// PR c++/15227 template struct A {}; template void A::B::foo() {} // { dg-error "" }