aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/canon-type-13.C
blob: 4f3702b842d0250b0dd490d810f43b6382886886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Contributed by Dodji Seketeli <dodji@redhat.com>
// { dg-do compile }

template<class T>
struct S0
{
};

template<class T>
struct S1
{
};

template<class T, template<class T>  class A, template<class T>  class B = A>
struct C
{
  B<T> m;
};

void
foo()
{
  C<int, S0> s;
  S0<int> s0;

  s.m = s0;
}