diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/explicit67.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/explicit67.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit67.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit67.C new file mode 100755 index 0000000..c8705f4 --- /dev/null +++ b/gcc_arm/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 + +} |