1 2 3 4 5 6 7 8 9 10 11 12 13
// { dg-do assemble } class A { class A_impl; public: A(){} }; template <class j> class A::A_impl // { dg-error "non-template" } { };