1 // PR c++/4286: We were crashing when trying to set up the class bindings in
2 // g(), because xref wanted the mangled name, which breaks inside a template.
4 // Of course, the offending code is actually ill-formed anyway, so check
5 // for the error. Also check that it's formatted properly.
9 template<class T> void f();
12 template<class T> void A::f()
17 static int x; // { dg-error "static.*int A::f\\(\\)::B::x" "" }