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

// Origin: Jakub Jelinek <jakub@redhat.com>
// PR c++/5402

struct A
{
    struct B {};
};

struct C
{
    typedef int B;
};

struct D : A
{
    struct E : C {};
    struct B {};
};