From b85db96a63b937220c248b438666eef4190276d4 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 25 Mar 2013 18:06:27 -0400 Subject: [PATCH] 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 --- gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this15.C | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this15.C diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this15.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this15.C new file mode 100644 index 00000000000..d44bec9494d --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this15.C @@ -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); }; +}