Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/memclass7.C

raw
1 // { dg-do run }
2 // { dg-options "-ansi -pedantic-errors -w" }
3 struct S
4 {
5 template <class U>
6 struct Y {
7 template <class T>
8 void foo(T t);
9 };
10 };
11
12 template <>
13 template <>
14 void S::Y<char>::foo<int>(int i) { }
15
16 int main()
17 {
18 S::Y<char> s;
19 s.foo<int>(3.0);
20 }