Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-62155.C

raw
1 // PR c++/62155
2 // { dg-do compile { target c++11 } }
3
4 template <typename T> struct S {
5 T i{[this] {}}; // { dg-error "cannot convert" }
6 };
7
8 S<int> s; // { dg-message "required" }