From: Jakub Jelinek Date: Fri, 11 Nov 2016 23:42:25 +0000 (+0100) Subject: re PR c++/71225 (Overeager instantiation of members of non-template class nested... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8f70e67b8e8f178c24a8cf7761d1378e612299f;p=gcc.git re PR c++/71225 (Overeager instantiation of members of non-template class nested in class template) PR c++/71225 * g++.dg/cpp0x/pr71225.C: New test. From-SVN: r242328 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b8ee57d5fe3..21d11935bc5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-11-12 Jakub Jelinek + + PR c++/71225 + * g++.dg/cpp0x/pr71225.C: New test. + 2016-11-11 Eric Botcazou * gcc.target/sparc/20161111-1.c: New test. diff --git a/gcc/testsuite/g++.dg/cpp0x/pr71225.C b/gcc/testsuite/g++.dg/cpp0x/pr71225.C new file mode 100644 index 00000000000..8a328e4d939 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr71225.C @@ -0,0 +1,17 @@ +// PR c++/71225 +// { dg-do compile { target c++11 } } + +template struct A; +template struct B; +template +struct C +{ + struct D + { + template (), int>::type = 0> + void foo () const {} + template (), int>::type = 0> + void foo () const {} + void bar () { foo (); } + }; +};