1// { dg-do assemble } 2// 3// Copyright (C) 2000 Free Software Foundation, Inc. 4// Contributed by Nathan Sidwell 5 Sept 2000 <nathan@codesourcery.com> 5 6// bug 79 & 59. We failed to tsubst non-type template parms which used 7// (previously deduced) type parms. 8 9struct C {}; 10 11template< class T, T *G > struct S {}; 12template< class T, T *G > void boz ( S<T,G> s1); 13 14C c1Gen; 15 16void foo () 17{ 18 S< C, &c1Gen > s1; 19 20 boz (s1); 21} 22