summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/lookup17.C
blob: 80a3b1a8707b83ab081763d5ffd9a6633806d219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do run  }
// Bug: t->B is resolved to the type instead of the field.

struct A {
  struct B { } *B;
  int i, j, k, l, m;
};

struct A a;

int
main ()
{
  void *p = a.B;
}