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:
Jason Merrill 2013-03-25 18:06:27 -04:00
parent 963afe1b0c
commit b85db96a63
1 changed files with 12 additions and 0 deletions

View File

@ -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); };
}