I've added tests for these fixits in r150777. :-)<div><br><div class="gmail_quote">On Thu, Feb 16, 2012 at 1:53 PM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: dgregor<br>
Date: Thu Feb 16 15:53:36 2012<br>
New Revision: 150727<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=150727&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=150727&view=rev</a><br>
Log:<br>
Improve recovery for lambda expressions that have 'mutable' or a<br>
trailing return type but not a '()'. Recover by inserting the<br>
parentheses. Thanks to Xeo on IRC for the example.<br>
<br>
Modified:<br>
cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td<br>
cfe/trunk/lib/Parse/ParseExprCXX.cpp<br>
cfe/trunk/test/Parser/cxx0x-lambda-expressions.cpp<br></blockquote></div></div>