]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* g++.old-deja/g++.pt/deduct2.C: New test.
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 6 Sep 2000 09:34:24 +0000 (09:34 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 6 Sep 2000 09:34:24 +0000 (09:34 +0000)
From-SVN: r36196

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/deduct2.C [new file with mode: 0644]

index 0740a28e2539f08efa912e381fa59d64885cfb2e..8a9cd10074e42b80311f2d632cfbe19a278312f3 100644 (file)
@@ -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>
 
        * g++.old-deja/g++.pt/parms2.C: New test.
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 (file)
index 0000000..9ff204c
--- /dev/null
@@ -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);
+}