PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / init / pr43890.C
blob1b2807d0d98127efcc497300f1e03a4ca33cc14d
1 // PR c++/43890
2 // { dg-do compile }
4 class Outer
6   public:
7   Outer()
8   : i(*this)
9   {
10   }
12   class Inner
13   {
14     public:
15     Inner(Outer& o)
16     : o(o)
17     , i(0)
18     {
19     }
21     private:
22     Outer& o;
23     int const i;
24   };
26   private:
27   Inner i;
30 class A {
31   Outer o;
34 int main()
36   A *a = new A;
38   return 0;