* g++.old-deja/g++.pt/deduct2.C: New test.
From-SVN: r36196
This commit is contained in:
parent
d7c4edd08e
commit
299d838af8
@ -1,3 +1,7 @@
|
|||||||
|
2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
|
* g++.old-deja/g++.pt/deduct2.C: New test.
|
||||||
|
|
||||||
2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
|
2000-09-06 Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
* g++.old-deja/g++.pt/parms2.C: New test.
|
* g++.old-deja/g++.pt/parms2.C: New test.
|
||||||
|
21
gcc/testsuite/g++.old-deja/g++.pt/deduct2.C
Normal file
21
gcc/testsuite/g++.old-deja/g++.pt/deduct2.C
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
// Build don't link:
|
||||||
|
//
|
||||||
|
// 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user