aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/member7.C
blob: 1c75e4956625ab78409b77166436705104fee3b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/29080

struct Base {
  template<class C> void method() { }
};

struct Left : public Base { };
struct Right : public Base { };
struct Join : public Left, public Right { };

void function()
{
  Join join;
  join.Left::method<int>();
}