| 1 |
// PR c++/60064 |
| 2 |
// { dg-do compile { target c++14 } } |
| 3 |
// { dg-additional-options "-fconcepts" } |
| 4 |
|
| 5 |
class A |
| 6 |
{ |
| 7 |
int m; |
| 8 |
friend void foo (auto) {} |
| 9 |
friend void foo2 (auto); |
| 10 |
}; |
| 11 |
|
| 12 |
void foo2 (auto i) |
| 13 |
{ |
| 14 |
A a; |
| 15 |
a.m = i; |
| 16 |
} |
| 17 |
|
| 18 |
int main () |
| 19 |
{ |
| 20 |
foo2 (7); |
| 21 |
} |