2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / deduct2.C
blob5501f363d2c7da36663c05eb923324971f78c9ed
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 5 Sept 2000 <nathan@codesourcery.com>
6 // bug 79 & 59. We failed to tsubst non-type template parms which used
7 // (previously deduced) type parms.
9 struct C {};  
11 template< class T, T *G > struct S {};
12 template< class T, T *G > void boz ( S<T,G> s1);
14 C c1Gen;
16 void foo ()
18   S< C, &c1Gen > s1;
20   boz (s1);