aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/inherit7.C
blob: b3abc26b98c87cfd0229838a7b09edc0c0988a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Origin: PR c++/48656
// { dg-do compile { target c++11 } }

struct A {
 int f();
 int f(int);
};

template <typename> struct B : A
{
};

template <typename T> struct C : B<T>
{
    void
    g()
    {
        A::f();
    }
};