1 // PR c++/5723, PR c++/8522
2 // Origin: Matthias Kleinmann, Peter Karl Mueller <peter.karl.mueller@gmx.de>
5 template <typename T> class A;
6 template <typename T> class A<T>::B; // { dg-error "declaration" "err" }
7 // { dg-warning "declaration" "warn" { target *-*-* } 6 }