Debian Codegraph @

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

raw
1 // PR c++/85815
2 // { dg-do compile { target c++11 } }
3
4 template<class T>
5 class A {
6 static A* INSTANCE;
7 void foobar();
8 void moo() {}
9 };
10
11 template<class T>
12 A<T>* A<T>::INSTANCE = nullptr;
13
14 template<class T>
15 void A<T>::foobar() {
16 auto x = []() {
17 INSTANCE->moo();
18 };
19 }