PR c++/89630
        * g++.dg/cpp0x/pr89630.C: New test.
---
 gcc/testsuite/g++.dg/cpp0x/pr89630.C | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 gcc/testsuite/g++.dg/cpp0x/pr89630.C

diff --git a/gcc/testsuite/g++.dg/cpp0x/pr89630.C 
b/gcc/testsuite/g++.dg/cpp0x/pr89630.C
new file mode 100644
index 00000000000..56f659f9846
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/pr89630.C
@@ -0,0 +1,15 @@
+// { dg-do compile { target c++11 } }
+// { dg-additional-options "-mrtm -march=skylake-avx512" { target i?86-*-* 
x86_64-*-* } }
+
+template <int> class A;
+template <typename> class B;
+template <typename> struct C;
+template <typename P_expr> class D {
+  using B<typename P_expr::T_numtype>::rank_;
+  void operator()(typename C<A<rank_>>::i);
+};
+
+template <typename P_expr> class F {
+  using B<typename P_expr::T_numtype>::rank_;
+  void operator()(typename C<A<rank_>>::i);
+};
-- 
2.20.1

Reply via email to