OSDN Git Service

new
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jan 1998 11:07:01 +0000 (11:07 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jan 1998 11:07:01 +0000 (11:07 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17553 138bc75d-0d04-0410-961f-82ee72b054a4

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
+};