re PR c++/56692 ([C++11] Segmentation fault when calling static/non-static overloaded function from lambda)
PR c++/56692 * g++.dg/cpp0x/lambda/lambda-this15.C: New. From-SVN: r197068
This commit is contained in:
parent
963afe1b0c
commit
b85db96a63
|
@ -0,0 +1,12 @@
|
||||||
|
// PR c++/56692
|
||||||
|
// { dg-require-effective-target c++11 }
|
||||||
|
|
||||||
|
struct Class {
|
||||||
|
void f () { }
|
||||||
|
static void f (int) { }
|
||||||
|
};
|
||||||
|
|
||||||
|
int main ()
|
||||||
|
{
|
||||||
|
[]{ Class::f(0); };
|
||||||
|
}
|
Loading…
Reference in New Issue