// { dg-do compile } // Origin: Giovanni Bajo // PR c++/10583: ICE using template function with invalid signature. template struct A { struct B {}; }; template void func(A::B* ) // { dg-error "variable|template|expression" } { } int main() { func(0); // { dg-error "not declared|expression|;" } }