Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/deduct2.C

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