Debian Codegraph @

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

raw
1 // { dg-do compile }
2
3 template <class T> void foo (int);
4
5 template <class T>
6 class Q {
7 friend void foo<T> (int = 3); // { dg-error "27:default arguments are not allowed in declaration of friend" }
8 };