mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 12:00:11 -05:00
2017-09-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/61135 * g++.dg/cpp0x/lambda/lambda-ice18.C: New. * g++.dg/cpp1y/lambda-ice2.C: Likewise. From-SVN: r252571
22 lines
237 B
C
22 lines
237 B
C
// PR c++/61135
|
|
// { dg-do compile { target c++14 } }
|
|
|
|
struct A
|
|
{
|
|
int funcA(){return 0;}
|
|
};
|
|
|
|
template<class>
|
|
struct B:virtual public A{
|
|
void funcB(){
|
|
[a=this->funcA()]{};
|
|
}
|
|
};
|
|
|
|
int main()
|
|
{
|
|
B<A> b;
|
|
b.funcB();
|
|
return 0;
|
|
}
|