1 2 3 4 5 6 7 8 9 10 11 12 13
// N3648: redundancy and capture init // { dg-do compile { target c++1y } } int main() { int x = 42; [=,x]{}; // { dg-error "redundant" } [=,&x]{}; [&,&x]{}; // { dg-error "redundant" } [&,x]{}; [=,x=24]{}; [&,&r=x]{}; }