Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-61148.C
blob879030caa0d3a20b38a3cf9ef01fa382364ab00f
1 // PR c++/61148
2 // { dg-do compile { target c++11 } }
4 class DB
6 protected:
7   void foo() {};
8 };
10 class DC : public DB
12 public:
13   DC()
14   {
15     [this]() {DB::foo();}();
16   };
19 template <class T>
20 class DC2 : public T
22 public:
23   DC2()
24   {
25     [this]() {T::foo();}();
26   };
29 int main(void)
31   DC x;
32   DC2<DB> x2;