new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 29 Jan 1998 11:07:01 +0000 (06:07 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 29 Jan 1998 11:07:01 +0000 (06:07 -0500)
From-SVN: r17553

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

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit67.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit67.C
new file mode 100644 (file)
index 0000000..c8705f4
--- /dev/null
@@ -0,0 +1,20 @@
+struct S
+{
+  void f(int);
+  void f(double);
+};
+
+void g(int);
+void g(double);
+
+template <int* IP>
+void foo();
+template <long l>
+void foo();
+
+void bar()
+{
+  foo<S::f>(); // ERROR - no matching function
+  foo<g>();    // ERROR - no matching function
+  
+}
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/spec14.C b/gcc/testsuite/g++.old-deja/g++.pt/spec14.C
new file mode 100644 (file)
index 0000000..0380c61
--- /dev/null
@@ -0,0 +1,9 @@
+class X
+{
+public:
+  template <typename A, typename B, typename C>
+  X() {}
+  
+  template <typename A, typename B>
+  X::X<A, void, B>() {} // ERROR - non-template type used as a template
+};