summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend26.C
blob: 3cf659df402c0235534286348201e95de6f2c28a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/14359

template<typename> struct A {};

template<typename> struct B
{
    template<typename T> friend void foo(const A<T>& a, const B&) { a; }
};

void bar()
{
    A<void> a;
    B<void> b;
    foo(a,b);
}