From 98e10ea1cf2910fe866a71687f181276fc55548a Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 29 Jan 1998 06:07:01 -0500 Subject: [PATCH] new From-SVN: r17553 --- .../g++.old-deja/g++.pt/explicit67.C | 20 +++++++++++++++++++ gcc/testsuite/g++.old-deja/g++.pt/spec14.C | 9 +++++++++ 2 files changed, 29 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/explicit67.C create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/spec14.C 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 00000000000..c8705f42564 --- /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 +void foo(); +template +void foo(); + +void bar() +{ + foo(); // ERROR - no matching function + foo(); // 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 00000000000..0380c61f619 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/spec14.C @@ -0,0 +1,9 @@ +class X +{ +public: + template + X() {} + + template + X::X() {} // ERROR - non-template type used as a template +}; -- 2.30.2