summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/name-clash2.C
blob: c200eeebd33e6c3b583c68c35d6514ed355a9a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile }

// Origin: Sven Bilke <bilkes@mail.nih.gov>
// PR c++/9777

struct A
{
    struct X {};
    struct Y { void X(); };
};

struct B : A
{
    struct Y : A::Y {};
    struct X : A::X {};
};