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
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr80194.C
blob
2a892c3cf37a72b83726b1de522f678082cd0905
1
// PR c++/80194
2
// { dg-do compile { target c++14 } }
3
4
int fn1 ();
5
6
template <class Fn>
7
void
8
fn2 (Fn &&fn)
9
{
10
fn (42);
11
}
12
13
void fn2 ()
14
{
15
auto const x = fn1 ();
16
fn2 ([&](auto) { x; });
17
}