]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2016-07-29 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Jul 2016 14:49:03 +0000 (14:49 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Jul 2016 14:49:03 +0000 (14:49 +0000)
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

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" }