repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-pr60064.C
blob
b82b560d1f5801af41dc5ebc454663ebbd12238c
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
}