Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/ttp28.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/56971 |
2 | |
3 template <typename T> | |
4 class rp { | |
5 }; | |
6 | |
7 template <template <typename> class P> | |
8 struct b { | |
9 template <class, template <typename> class FriendP> | |
10 friend void f(b<FriendP> from); | |
11 }; | |
12 | |
13 template <class, template <typename> class P> | |
14 void f(b<P> from) { | |
15 } | |
16 | |
17 int main() { | |
18 b<rp> v; | |
19 f<int>(v); | |
20 return 0; | |
21 } |