Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/constexpr-lambda15.C

raw
1 // PR c++/79461
2 // { dg-do compile { target c++14 } }
3
4 struct S {
5 constexpr S(int i) {
6 auto f = [i]{}; // { dg-error "10:variable .f. of non-literal type" "" { target c++14_only } }
7 }
8 };
9 int main() {}
10