// PR c++/40406 template struct A { template template void A::foo() {} // { dg-error "extra qualification" } };