From f54ea774e3220afb8bddc55cbdc1d1dadbba4ee6 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 29 Jul 2016 14:49:03 +0000 Subject: [PATCH] re PR c++/51488 (ICE on infinite template recursion) 2016-07-29 Paolo Carlini PR c++/51488 * g++.dg/template/pr51488.C: New. From-SVN: r238870 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/template/pr51488.C | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/pr51488.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1bc34b96395..b0d25939528 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-07-29 Paolo Carlini + + PR c++/51488 + * g++.dg/template/pr51488.C: New. + 2016-07-29 Jakub Jelinek 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 index 00000000000..4979a22787c --- /dev/null +++ b/gcc/testsuite/g++.dg/template/pr51488.C @@ -0,0 +1,7 @@ +// PR c++/51488 + +template struct s; +template struct s::a> {}; +s ca; // { dg-error "depth" } + +// { dg-prune-output "compilation terminated" } -- 2.30.2