This test was failing in C++11 because variable templates are only
available in C++14.

Tested x86_64-pc-linux-gnu, applying to trunk.

gcc/testsuite/ChangeLog:

        * g++.dg/template/pr98372.C: Only run in C++14 and up.
---
 gcc/testsuite/g++.dg/template/pr98372.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/template/pr98372.C 
b/gcc/testsuite/g++.dg/template/pr98372.C
index f1e8b0f3323..054c94d9edb 100644
--- a/gcc/testsuite/g++.dg/template/pr98372.C
+++ b/gcc/testsuite/g++.dg/template/pr98372.C
@@ -1,5 +1,5 @@
 // PR 98372 ICE due to incorrect type compare
-// { dg-do compile { target c++11 } }
+// { dg-do compile { target c++14 } }
 
 template <typename _Tp> using remove_pointer_t = typename _Tp ::type;
 template <bool> struct enable_if;

base-commit: bdd1b1f55529da00b867ef05a53a08fbfc3d1c2e
-- 
2.29.2

Reply via email to