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: releases/gcc-4.9.0~6866 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b85db96a63b937220c248b438666eef4190276d4;p=thirdparty%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 000000000000..d44bec9494d4 --- /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); }; +}