[gcc r9-9268] c++: Use c++2a in g++.dg/cpp2a/nontype-class-defarg1.C.

Marek Polacek mpolacek@gcc.gnu.org
Fri Mar 5 17:54:05 GMT 2021


https://gcc.gnu.org/g:2b4fcfcf12914e69b5b3e4b4eb29997be3bbea5b

commit r9-9268-g2b4fcfcf12914e69b5b3e4b4eb29997be3bbea5b
Author: Marek Polacek <polacek@redhat.com>
Date:   Fri Mar 5 12:51:53 2021 -0500

    c++: Use c++2a in g++.dg/cpp2a/nontype-class-defarg1.C.
    
    GCC 9 doesn't have the "c++20" target yet.
    
            * g++.dg/cpp2a/nontype-class-defarg1.C: Use target c++2a.

Diff:
---
 gcc/testsuite/g++.dg/cpp2a/nontype-class-defarg1.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/cpp2a/nontype-class-defarg1.C b/gcc/testsuite/g++.dg/cpp2a/nontype-class-defarg1.C
index ddd64d6165b..4e7261a203c 100644
--- a/gcc/testsuite/g++.dg/cpp2a/nontype-class-defarg1.C
+++ b/gcc/testsuite/g++.dg/cpp2a/nontype-class-defarg1.C
@@ -1,5 +1,5 @@
 // PR c++/98810
-// { dg-do compile { target c++20 } }
+// { dg-do compile { target c++2a } }
 
 template <auto> struct a {};
 template <int i, a <i> s = a <i> {}> using b = a <s>;


More information about the Gcc-cvs mailing list