1 // PR c++/40406 2 3 template<int> struct A 4 { fooA5 template<int> template<int> void A::foo() {} // { dg-error "36:extra qualification" } 6 }; 7