[PATCH] Fix for PR 18052 - lambdas within NSDMI's and default arguments in nested classes
Richard Smith
richard at metafoo.co.uk
Wed Dec 4 13:13:54 PST 2013
================
Comment at: lib/Sema/SemaDecl.cpp:873-874
@@ -872,3 +872,4 @@
// the context we'll need to return to.
if (isa<FunctionDecl>(DC)) {
+ const bool IsLambdaCallOperator = isLambdaCallOperator(DC);
DC = DC->getLexicalParent();
----------------
Just change this to
// The body of a lambda call operator that appears lexically within a class definition is parsed immediately.
if (isa<FunctionDecl>(DC) && !isLambdaCallOperator(DC))
http://llvm-reviews.chandlerc.com/D2331
More information about the cfe-commits
mailing list