1/* { dg-do compile { target c++11 } } */
2/* { dg-options "-fno-inline" } */
3/* { dg-add-options bind_pic_locally } */
4
5  struct B
6  {
7  constexpr B ():
8    bp ()
9    {}
10    ~B ()
11    {
12      if (bp)
13	bp->f ();
14    }
15    void f ();
16    B *bp;
17  };
18struct A  {    B b;
19};
20
21void foo ()
22{
23  A a;
24}
25