aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1998-01-29 06:07:01 -0500
committerJason Merrill <jason@gcc.gnu.org>1998-01-29 06:07:01 -0500
commit98e10ea1cf2910fe866a71687f181276fc55548a (patch)
tree43baecbfac079e258e77c1d08a186a30339f0abd
parent7bf2682f3ff7a8a67eb33a022b435f90f547af25 (diff)
downloadgcc-98e10ea1cf2910fe866a71687f181276fc55548a.zip
gcc-98e10ea1cf2910fe866a71687f181276fc55548a.tar.gz
gcc-98e10ea1cf2910fe866a71687f181276fc55548a.tar.bz2
new
From-SVN: r17553
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/explicit67.C20
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/spec14.C9
2 files changed, 29 insertions, 0 deletions
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
index 0000000..c8705f4
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/explicit67.C
@@ -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
index 0000000..0380c61
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/spec14.C
@@ -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
+};