summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend29.C
blob: 1c0c6f0f765af2eb653897cedd74aa595e2d1742 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/15701

template<template<int> class T> struct A : T<0>
{
    void foo();
    template<template<int> class U> friend void A<U>::foo();
};

template<int> struct B {};

A<B> a;