gcc/testsuite/g++.dg/template/ttp37.C
raw| 1 | // PR c++/110523 |
| 2 | |
| 3 | template<template<class> class> |
| 4 | class basic_json; |
| 5 | |
| 6 | template<class> |
| 7 | struct json_pointer { |
| 8 | template<template<class> class> |
| 9 | friend class basic_json; |
| 10 | }; |
| 11 | |
| 12 | template struct json_pointer<int>; |
| 13 | template struct json_pointer<char>; |
| 14 | template struct json_pointer<long>; |
| 15 | template struct json_pointer<void>; |