Debian Codegraph @

gcc/testsuite/g++.dg/template/friend64.C

raw
1 template <class T> void foo (int);
2
3 template <class T>
4 class Q {
5 friend void foo<T> (int) { } // { dg-error "15:defining explicit specialization" }
6 };