1 // PR c++/45043
2 
3 template < typename > class A;
~B()4 template < typename T > A < T >::B::~B () // { dg-error "type" }
5 {}
6