summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice10.C
blob: 235bfeb8d18801cd322659289800fda804098a31 (plain)
1
2
3
4
5
6
7
8
// PR c++/58568
// { dg-do compile { target c++11 } }

template<int> struct A
{
  static const int i;
  template<int N> const int A<N>::i = []{ return 0; }(); // { dg-error "29:invalid use" }
};