1 // { dg-do compile }
2 
3 // Origin: akim@epita.fr
4 //	   Volker Reichelt <reichelt@gcc.gnu.org>
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;
16