Debian Codegraph @

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

raw
1 // PR 59930 (part) templated class friend declarations cannot have
2 // default args.
3
4 template <class T>
5 struct S
6 {
7 template <class U = int> friend class R; // { dg-error "template friend" }
8 template <class U = int> friend class S; // { dg-error "template friend" }
9 };