summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/scoping.C
blob: ef167306986d6c96fca4678ea2eb82e5d3bf1713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// PRMS Id: 3977
// Bug: A member function is not hidden properly by a later use of its name.

struct A {
  void index ();
};

struct B: A {
  int index;
  B(): index(4) {}
};