summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/using21.C
blob: 7f61f85474997bfbcaf9fde3f9f8017242124510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// PR c++/52126
// { dg-do compile }

template<typename T>
struct A
{
    int foo;

    struct B : A<T>
    {
        using A::foo;
    };

    struct C : A
    {
        using A::foo;
    };

    struct D : A<T>
    {
	using A<T>::foo;
    };

    struct E : A
    {
	using A<T>::foo;
    };
};