PR c++/51488
* g++.dg/template/pr51488.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238870
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-07-29 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/51488
+ * g++.dg/template/pr51488.C: New.
+
2016-07-29 Jakub Jelinek <jakub@redhat.com>
PR c/71969
--- /dev/null
+// PR c++/51488
+
+template<class T,class U=void> struct s;
+template<class T> struct s<T,typename s<T>::a> {};
+s<int> ca; // { dg-error "depth" }
+
+// { dg-prune-output "compilation terminated" }