Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this18.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
16 template <class T> | 16 template <class T> |
17 template <class U> | 17 template <class U> |
18 void | 18 void |
19 A<T>::bar () | 19 A<T>::bar () |
20 { | 20 { |
21 auto f = [this] () { auto g = [=] () { a.foo (); }; g (); }; | 21 auto f = [this] () { auto g = [=] () { a.foo (); }; g (); }; // { dg-warning "implicit capture" "" { target c++2a } } |
22 f (); | 22 f (); |
23 } | 23 } |
24 | 24 |
25 int | 25 int |
26 main () | 26 main () |