summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice24.C
blob: 2f42d7145210345c17c51c18f7c439693017af50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/82293
// { dg-do compile { target c++11 } }
// { dg-options "-Wshadow" }

template <typename>
struct S {
  int f{[this](){return 42;}()};
};

int main(){
  return S<int>{}.f;
}