From 73a040906d0cbf2240ed2bf19523fc0d73651bf8 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 7 Jan 2012 04:59:52 +0000 Subject: More lambda work: semantic analysis of capturing 'this'. It's a bit complicated, but we have to be careful about when exactly captures are marked given PotentiallyPotentiallyEvaluated contexts. (Actually, it's not 100% correct yet, but it's close enough for the moment.) llvm-svn: 147723 --- clang/test/Parser/objcxx0x-lambda-expressions.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/test/Parser/objcxx0x-lambda-expressions.mm') diff --git a/clang/test/Parser/objcxx0x-lambda-expressions.mm b/clang/test/Parser/objcxx0x-lambda-expressions.mm index 5cfb4f8c5a7..06573b94467 100644 --- a/clang/test/Parser/objcxx0x-lambda-expressions.mm +++ b/clang/test/Parser/objcxx0x-lambda-expressions.mm @@ -14,7 +14,8 @@ class C { [] {}; // expected-error {{lambda expressions are not supported yet}} [=] (int i) {}; // expected-error {{lambda expressions are not supported yet}} [&] (int) mutable -> void {}; // expected-error {{lambda expressions are not supported yet}} - [foo,bar] () { return 3; }; // expected-error {{lambda expressions are not supported yet}} + // FIXME: Implicit return type deduction doesn't work yet. + [foo,bar] () { return 3; }; // expected-error {{void function 'f' should not return a value}} expected-error {{lambda expressions are not supported yet}} [=,&foo] () {}; // expected-error {{lambda expressions are not supported yet}} [this] () {}; // expected-error {{lambda expressions are not supported yet}} } -- cgit v1.2.3