summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr105256.C
blob: 98ce5e8b7bfa4199832d0f826153c87d06a889a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/105256
// { dg-do compile { target c++11 } }

int bar (int &);

struct S {
  struct T {
    struct U {
      int i = bar (i);
    } u;
  };
};

void
foo (S::T *p)
{
  *p = {};
};