Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/lambda-generic11.C

raw
1 // PR c++/108999
2 // { dg-do compile { target c++20 } }
3
4 template<typename T>
5 void ice(T a) {
6 auto aa = a;
7 auto lambda = []<int I>() {
8 if constexpr (sizeof(aa) + I != 42) { }
9 };
10 lambda.template operator()<17>();
11 }
12
13 template void ice(int);