aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/scoping2.C
blob: 68c8c754a80e4d6ea1114f9ebe4f8d219cd425d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Bug: A function is not hidden properly by a use of its name in an
// inner scope.
// Build don't link:

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