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
re PR c++/69977 (internal compiler error: Segmentation fault when using generic lambdas)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-69977.C
blob
5f491da894b9b906fe26642656c99f1faee90954
1
// PR c++/69977
2
// { dg-do compile { target c++14 } }
3
4
class A {
5
private:
6
void method(int i) {
7
(void) i;
8
}
9
10
public:
11
void publicMethod() {
12
auto lambda = [&] (const auto k) {
13
method(k);
14
};
15
lambda(42);
16
}
17
};
18
19
int main()
20
{
21
A a;
22
a.publicMethod();
23
}