From: Jason Merrill Date: Mon, 25 Mar 2013 22:06:27 +0000 (-0400) Subject: re PR c++/56692 ([C++11] Segmentation fault when calling static/non-static overloaded... X-Git-Tag: upstream/12.2.0~70680 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b85db96a63b937220c248b438666eef4190276d4;p=platform%2Fupstream%2Fgcc.git 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 --- 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 0000000..d44bec9 --- /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); }; +}