diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-09-06 09:34:24 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-09-06 09:34:24 +0000 |
commit | 299d838af8eff49c7c1f04db2aad57f14e305515 (patch) | |
tree | 907f75791d5ff1180859adb7d4a259ceb8842b5d | |
parent | d7c4edd08e0a1e8a519affb51d40bcffbd60ff73 (diff) | |
download | gcc-299d838af8eff49c7c1f04db2aad57f14e305515.zip gcc-299d838af8eff49c7c1f04db2aad57f14e305515.tar.gz gcc-299d838af8eff49c7c1f04db2aad57f14e305515.tar.bz2 |
* g++.old-deja/g++.pt/deduct2.C: New test.
From-SVN: r36196
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/deduct2.C | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0740a28..8a9cd10 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 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> + * g++.old-deja/g++.pt/parms2.C: New test. 2000-09-06 Nathan Sidwell <nathan@codesourcery.com> diff --git a/gcc/testsuite/g++.old-deja/g++.pt/deduct2.C b/gcc/testsuite/g++.old-deja/g++.pt/deduct2.C new file mode 100644 index 0000000..9ff204c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/deduct2.C @@ -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); +} |