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++/61135 (It seems to be not able to call virtual method of literal object...
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-ice2.C
blob
8539de11ed60b969414e1dec0fbfb9e477d0295a
1
// PR c++/61135
2
// { dg-do compile { target c++14 } }
3
4
struct A
5
{
6
int funcA(){return 0;}
7
};
8
9
template<class>
10
struct B:virtual public A{
11
void funcB(){
12
[a=this->funcA()]{};
13
}
14
};
15
16
int main()
17
{
18
B<A> b;
19
b.funcB();
20
return 0;
21
}