diff options
| author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-06 09:34:24 +0000 |
|---|---|---|
| committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-06 09:34:24 +0000 |
| commit | 3e37cfcc9c70c3da5d39e0b9ead8f335bc155293 (patch) | |
| tree | 907f75791d5ff1180859adb7d4a259ceb8842b5d | |
| parent | acbb7c3a4cb5f0941165c4238920161314e3e751 (diff) | |
| download | ppe42-gcc-3e37cfcc9c70c3da5d39e0b9ead8f335bc155293.tar.gz ppe42-gcc-3e37cfcc9c70c3da5d39e0b9ead8f335bc155293.zip | |
* g++.old-deja/g++.pt/deduct2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36196 138bc75d-0d04-0410-961f-82ee72b054a4
| -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 0740a28e253..8a9cd10074e 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 00000000000..9ff204c40ac --- /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); +} |

