Merge from mainline.
[official-gcc.git] / gcc / testsuite / g++.dg / template / ttp13.C
blob2c35b3a79b98249812a235d9bb80f9927e3f7466
1 // { dg-do compile }
3 // Origin: Wolfgang Bangerth <bangerth@dealii.org>
5 // PR c++/15664: Template substitution of template template parameter
7 template <int N> struct S { 
8     template<template<typename> class A> 
9     friend void foo(); 
10 }; 
12 template<template<typename> class A> 
13 void foo(); 
15 template <typename> struct X {}; 
17 int main () { 
18   S<1> s; 
19   foo<X>();