aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2017-05-11 17:13:42 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2017-05-11 17:13:42 +0000
commit59fbddcfff234b2f074288b92da7523c11d23aa0 (patch)
tree7ea6d9f7c10abed884f0796e30f54a941f63cb6a /gcc
parentc24e924f928e7a092a7dd829a6eb95c2c95625a3 (diff)
downloadgcc-59fbddcfff234b2f074288b92da7523c11d23aa0.zip
gcc-59fbddcfff234b2f074288b92da7523c11d23aa0.tar.gz
gcc-59fbddcfff234b2f074288b92da7523c11d23aa0.tar.bz2
re PR c++/70538 (ICE on a deprecated access declaration in instantiate_template_1, at cp/pt.c:17310)
2017-05-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/70538 * g++.dg/cpp0x/pr70538.C: New. From-SVN: r247917
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/pr70538.C15
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9ab52c2..2bb56df 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-11 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/70538
+ * g++.dg/cpp0x/pr70538.C: New.
+
2017-05-11 Uros Bizjak <ubizjak@gmail.com>
* 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 0000000..0347c85
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/pr70538.C
@@ -0,0 +1,15 @@
+// { dg-do compile { target c++11 } }
+
+struct A;
+template <typename> class C;
+using PathComponentPiece = C<int>;
+class B {
+ B(int);
+ template <typename T> B(T);
+ B(C<A>);
+};
+template <typename> class C : B {
+ using base_type = B;
+ base_type::base_type; // { dg-warning "access declarations" }
+ PathComponentPiece m_fn1() {}
+};