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:
parent
49b5925f02
commit
f54ea774e3
@ -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
|
||||
|
7
gcc/testsuite/g++.dg/template/pr51488.C
Normal file
7
gcc/testsuite/g++.dg/template/pr51488.C
Normal 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" }
|
Loading…
Reference in New Issue
Block a user