Debian Codegraph @

gcc/testsuite/g++.dg/concepts/abbrev7.C

raw
1 // PR c++/96106
2 // { dg-do compile { target concepts } }
3
4 template<typename>
5 struct number {
6 friend void add(auto);
7 };
8
9 void add(auto) { }
10
11 void foo() {
12 number<int> n;
13 add(n); // { dg-bogus "ambiguous" }
14 }