diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memclass7.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/memclass7.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memclass7.C b/gcc/testsuite/g++.old-deja/g++.pt/memclass7.C new file mode 100644 index 000000000..ec9c58cc0 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/memclass7.C @@ -0,0 +1,20 @@ +// { dg-do run } +// { dg-options "-ansi -pedantic-errors -w" } +struct S +{ + template <class U> + struct Y { + template <class T> + void foo(T t); + }; +}; + +template <> +template <> +void S::Y<char>::foo<int>(int i) { } + +int main() +{ + S::Y<char> s; + s.foo<int>(3.0); +} |