summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/deduct2.C
blob: 5501f363d2c7da36663c05eb923324971f78c9ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do assemble  }
// 
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 5 Sept 2000 <nathan@codesourcery.com>

// bug 79 & 59. We failed to tsubst non-type template parms which used
// (previously deduced) type parms.

struct C {};  

template< class T, T *G > struct S {};
template< class T, T *G > void boz ( S<T,G> s1);

C c1Gen;

void foo ()
{
  S< C, &c1Gen > s1;

  boz (s1);
}