summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi10.C
blob: 810ed5387198441fe0089788051ec2f6cd51b853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/95870
// { dg-do compile { target c++11 } }

template <typename> struct S {
  S();
  int b = []() -> int { enum E {}; return 1; }();
};
struct C : S<int> {
  C();
};
template <typename T> S<T>::S() = default;
C::C() {}