Add a test for PR c++/89630

PR c++/89630
	* g++.target/i386/pr89630.C: New test.

From-SVN: r269781
This commit is contained in:
H.J. Lu 2019-03-18 21:22:30 +00:00 committed by H.J. Lu
parent a8b58d84bf
commit 0bf09c3721
2 changed files with 20 additions and 0 deletions

View 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.

View File

@ -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);
};