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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr60390.C
blob
5cd5539f82e81bb92cd87592ef5fc686d34958d6
1
// PR c++/60390
2
// { dg-do compile { target c++1y } }
3
// { dg-options "" }
4
5
struct A
6
{
7
void foo (auto);
8
};
9
10
class B
11
{
12
int m;
13
friend void A::foo (auto);
14
};
15
16
void A::foo (auto i)
17
{
18
B b;
19
b.m = i;
20
}
21
22
int main ()
23
{
24
A a;
25
a.foo (7);
26
}