From: Paolo Carlini Date: Thu, 11 May 2017 17:13:42 +0000 (+0000) Subject: re PR c++/70538 (ICE on a deprecated access declaration in instantiate_template_1... X-Git-Tag: basepoints/gcc-9~7380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59fbddcfff234b2f074288b92da7523c11d23aa0;p=thirdparty%2Fgcc.git re PR c++/70538 (ICE on a deprecated access declaration in instantiate_template_1, at cp/pt.c:17310) 2017-05-11 Paolo Carlini PR c++/70538 * g++.dg/cpp0x/pr70538.C: New. From-SVN: r247917 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9ab52c2faae1..2bb56df5dbf5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-05-11 Paolo Carlini + + PR c++/70538 + * g++.dg/cpp0x/pr70538.C: New. + 2017-05-11 Uros Bizjak * gcc.target/i386/pr22152.c: Fix undefined testcase. Remove diff --git a/gcc/testsuite/g++.dg/cpp0x/pr70538.C b/gcc/testsuite/g++.dg/cpp0x/pr70538.C new file mode 100644 index 000000000000..0347c856c55c --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr70538.C @@ -0,0 +1,15 @@ +// { dg-do compile { target c++11 } } + +struct A; +template class C; +using PathComponentPiece = C; +class B { + B(int); + template B(T); + B(C); +}; +template class C : B { + using base_type = B; + base_type::base_type; // { dg-warning "access declarations" } + PathComponentPiece m_fn1() {} +};