re PR c++/70538 (ICE on a deprecated access declaration in instantiate_template_1...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 11 May 2017 17:13:42 +0000 (17:13 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 11 May 2017 17:13:42 +0000 (17:13 +0000)
2017-05-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70538
* g++.dg/cpp0x/pr70538.C: New.

From-SVN: r247917

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr70538.C [new file with mode: 0644]

index 9ab52c2..2bb56df 100644 (file)
@@ -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 (file)
index 0000000..0347c85
--- /dev/null
@@ -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() {}
+};