re PR c++/51488 (ICE on infinite template recursion)

2016-07-29  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r238870
This commit is contained in:
Paolo Carlini 2016-07-29 14:49:03 +00:00 committed by Paolo Carlini
parent 49b5925f02
commit f54ea774e3
2 changed files with 12 additions and 0 deletions

View 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

View File

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