summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/inherit7.C
blob: 67afbca6bf0383958ba42c1e2b4ca244d077cdb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Origin: PR c++/48656
// { dg-options "-std=c++0x" }
// { dg-do compile }

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

template <typename> struct B : A
{
};

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