Add a test for PR c++/89630
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 18 Mar 2019 21:22:30 +0000 (21:22 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 18 Mar 2019 21:22:30 +0000 (14:22 -0700)
PR c++/89630
* g++.target/i386/pr89630.C: New test.

From-SVN: r269781

gcc/testsuite/ChangeLog
gcc/testsuite/g++.target/i386/pr89630.C [new file with mode: 0644]

index de31e36f53dbe151d2b161c0e5309b44d5b6021d..267b2cd4858ed61e43729a135cb4949bb1773377 100644 (file)
@@ -1,3 +1,8 @@
+2019-03-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR c++/89630
+       * g++.target/i386/pr89630.C: New test.
+
 2019-03-18  Kito Cheng  <kito.cheng@gmail.com>
 
        * gcc.target/riscv/arch-1.c: Add quotes around march in dg-error.
diff --git a/gcc/testsuite/g++.target/i386/pr89630.C b/gcc/testsuite/g++.target/i386/pr89630.C
new file mode 100644 (file)
index 0000000..240aa74
--- /dev/null
@@ -0,0 +1,15 @@
+// { dg-do compile }
+// { dg-options "-std=c++14 -mrtm -march=skylake-avx512" }
+
+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);
+};