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
Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git]
/
embedded-5_0-branch
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-uneval1.C
blob
113eacf843cc17f29204ad802b8e768e5eb1b4a9
1
// PR c++/64834
2
// { dg-do compile { target c++14 } }
3
4
template <typename F>
5
void e(F f)
6
{
7
f(1);
8
}
9
10
template <int I>
11
void bar() {
12
int x;
13
e([&] (const int& y) { (void)sizeof(x); });
14
e([&] (const auto& y) { (void)sizeof(x); });
15
}
16
17
void baz() { bar<1>(); }