re PR c++/51488 (ICE on infinite template recursion)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 29 Jul 2016 14:49:03 +0000 (14:49 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 29 Jul 2016 14:49:03 +0000 (14:49 +0000)
2016-07-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51488
* g++.dg/template/pr51488.C: New.

From-SVN: r238870

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr51488.C [new file with mode: 0644]

index 1bc34b96395cb4c85226dcf0139e8caedbb0641e..b0d259395280d639b6349cd221a1fa8e3bc4188b 100644 (file)
@@ -1,3 +1,8 @@
+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
diff --git a/gcc/testsuite/g++.dg/template/pr51488.C b/gcc/testsuite/g++.dg/template/pr51488.C
new file mode 100644 (file)
index 0000000..4979a22
--- /dev/null
@@ -0,0 +1,7 @@
+// 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" }