aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/using8.C
blob: a79158710f52c3aa75b712e58a7f0780ff060932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do compile }

// Origin: Sergey Shandar <comer@pisem.net>

// PR c++/9810: Access checking for member function template
// appeared in using declaration.

struct A
{
  template<class R> void F(R) {}
};

struct B: private A
{
  using A::F;
};

int main()
{
  B b;
  b.F(3);
}