From 59fbddcfff234b2f074288b92da7523c11d23aa0 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 11 May 2017 17:13:42 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/pr70538.C | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/pr70538.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9ab52c2faae..2bb56df5dbf 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 00000000000..0347c856c55 --- /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() {} +}; -- 2.30.2