We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e421a1c commit 2cea7e2Copy full SHA for 2cea7e2
gcc/testsuite/g++.dg/contracts/cpp26/lambda.C
@@ -1,6 +1,6 @@
1
// check that we do not crash when capturing a constified entity in a contract assertion lambda
2
// { dg-do compile }
3
// { dg-options "-std=c++2b -fcontracts -fcontracts-nonattr " }
4
-void f(int i, int j) pre( [il = i, jl = &j](){ return true;} ( ))
+void f(int i, int j) pre( [i, &j](){ return true;} ( ))
5
{
6
};
0 commit comments