Debian Codegraph @

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

raw
1 // { dg-do assemble }
2
3 template <class T>
4 struct S1 {};
5
6 template <class T>
7 void f(T);
8
9 template <class C>
10 struct S2
11 {
12 template <class T>
13 void f<S1<T> >(T) {} // { dg-error "8:non-class, non-variable partial specialization" "" { target c++14 } }
14 // { dg-error "8:non-type partial specialization" "" { target c++11_down } .-1 }
15 };
16
17
18 template <class T>
19 struct S3
20 {
21 friend class S2<T>;
22 };