gcc/testsuite/g++.dg/template/ttp14.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Origin: [email protected] |
| 4 | // Volker Reichelt <[email protected]> |
| 5 | |
| 6 | // PR c++/18276: Template substitution of template template parameter |
| 7 | |
| 8 | template<template<int> class> struct A; |
| 9 | |
| 10 | template<int> struct B |
| 11 | { |
| 12 | template<template<int> class> friend class A; |
| 13 | }; |
| 14 | |
| 15 | B<0> b; |