☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-lambda15.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/constexpr-lambda15.C
code
plain
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