Debian Codegraph @

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

raw
1 // PR c++/58568
2 // { dg-do compile { target c++11 } }
3
4 template<int> struct A
5 {
6 static const int i;
7 template<int N> const int A<N>::i = []{ return 0; }(); // { dg-error "29:invalid use" }
8 };