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
PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr60064.C
blob
add3f05cbbd6d9a8c8c5bd8b21008e542c9ca9dc
1
// PR c++/60064
2
// { dg-do compile { target c++14 } }
3
// { dg-options "" }
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
}