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++, coroutines: Simplify separation of the user function body and ramp.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-const9.C
blob
491c7c322c3e73890a5ca5a2ade0debc936bbc16
1
// PR c++/86429
2
// { dg-do compile { target c++14 } }
3
4
struct A
5
{
6
int i;
7
constexpr int f(const int&) const { return i; }
8
};
9
10
void g()
11
{
12
constexpr A a = { 42 };
13
[&](auto x) {
14
constexpr auto y = a.f(x);
15
}(24);
16
}