diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1998-01-29 06:07:01 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-01-29 06:07:01 -0500 |
commit | 98e10ea1cf2910fe866a71687f181276fc55548a (patch) | |
tree | 43baecbfac079e258e77c1d08a186a30339f0abd | |
parent | 7bf2682f3ff7a8a67eb33a022b435f90f547af25 (diff) | |
download | gcc-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.C | 20 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/spec14.C | 9 |
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 +}; |