summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ttp8.C
blob: 99f99b965a1c91467acd0783c411c21169eb5a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile }
// Contributed by: Niall Douglas <s_gccbugzilla at netprod dot com>
// PR c++/14284: Failure to select specialization 

template<typename> struct S; 
template<template<class> class> struct I {}; 
 
template<class, int> struct Match; 
 
template<template<class> class C> 
struct Match<I<C>, 0> {}; 
 
template<template<class> class C, int i> 
struct Match<I<C>, i>; 
 
Match<I<S>, 0> v;