public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r9-9553] c++: lambda pack init-capture within generic lambda
@ 2021-05-24  8:33 Christophe Lyon
  0 siblings, 0 replies; only message in thread
From: Christophe Lyon @ 2021-05-24  8:33 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ba19b5543d31a76f494e76c32a548d70ac4d3cc1

commit r9-9553-gba19b5543d31a76f494e76c32a548d70ac4d3cc1
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date:   Mon May 24 07:35:44 2021 +0000

    c++: lambda pack init-capture within generic lambda
    
    In gcc-9-branch, the testsuite does not support the c++20 target
    selector: use c++2a instead, to avoid Dejagnu errors when running the
    testsuite.
    
    2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
    
            PR c++/97938
            gcc/testsuite/
            * g++.dg/cpp2a/lambda-pack-init6.C: Use c++2a target selector.

Diff:
---
 gcc/testsuite/g++.dg/cpp2a/lambda-pack-init6.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/cpp2a/lambda-pack-init6.C b/gcc/testsuite/g++.dg/cpp2a/lambda-pack-init6.C
index 3ee500ed999..137e4e9fab3 100644
--- a/gcc/testsuite/g++.dg/cpp2a/lambda-pack-init6.C
+++ b/gcc/testsuite/g++.dg/cpp2a/lambda-pack-init6.C
@@ -1,5 +1,5 @@
 // PR c++/97938
-// { dg-do compile { target c++20 } }
+// { dg-do compile { target c++2a } }
 
 template <typename... Args>
 int sink(Args&&... args) { return 2; }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-24  8:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24  8:33 [gcc r9-9553] c++: lambda pack init-capture within generic lambda Christophe Lyon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).