From 0bf09c37211e410fbe66de3d52b40d1981a5a0d6 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 18 Mar 2019 21:22:30 +0000 Subject: [PATCH] Add a test for PR c++/89630 PR c++/89630 * g++.target/i386/pr89630.C: New test. From-SVN: r269781 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.target/i386/pr89630.C | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 gcc/testsuite/g++.target/i386/pr89630.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index de31e36f53d..267b2cd4858 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-03-19 H.J. Lu + + PR c++/89630 + * g++.target/i386/pr89630.C: New test. + 2019-03-18 Kito Cheng * 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 index 00000000000..240aa742000 --- /dev/null +++ b/gcc/testsuite/g++.target/i386/pr89630.C @@ -0,0 +1,15 @@ +// { dg-do compile } +// { dg-options "-std=c++14 -mrtm -march=skylake-avx512" } + +template class A; +template class B; +template struct C; +template class D { + using B::rank_; + void operator()(typename C>::i); +}; + +template class F { + using B::rank_; + void operator()(typename C>::i); +}; -- 2.30.2