From: Jason Merrill Date: Thu, 29 Jan 1998 11:07:01 +0000 (-0500) Subject: new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98e10ea1cf2910fe866a71687f181276fc55548a;p=gcc.git new From-SVN: r17553 --- 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 +};