summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/scoping2.C
blob: 637e74b246ea873274fb41caedf837115b9f61af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// Bug: A function is not hidden properly by a use of its name in an
// inner scope.

struct A
{
    struct B
    {
	int f;
	B() : f(0) {}
	void g() { f = 0; }
    };
    void f();
    void f(int);
};