re PR c++/56692 ([C++11] Segmentation fault when calling static/non-static overloaded...
authorJason Merrill <jason@gcc.gnu.org>
Mon, 25 Mar 2013 22:06:27 +0000 (18:06 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 25 Mar 2013 22:06:27 +0000 (18:06 -0400)
PR c++/56692
* g++.dg/cpp0x/lambda/lambda-this15.C: New.

From-SVN: r197068

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this15.C [new file with mode: 0644]

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 (file)
index 0000000..d44bec9
--- /dev/null
@@ -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); };
+}