// PR c++/71718 // { dg-do compile { target c++11 } } template class A : T{}; template using sp = A; struct Base {}; template const sp rec() // { dg-error "depth" } { return rec(); } static void f(void) { rec(); } // { dg-prune-output "compilation terminated" }