summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/nested1.C
blob: 957ad456ffdabee76f9bf9e070268ff514cd32b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }

struct C
{
  struct D
  {
  };
};

struct E
{
  C& c;
  void g();
};

void E::g()
{
  c.D().f(); // { dg-error "" } no matching function
}