================
Comment at: lib/AST/Expr.cpp:604
@@ -603,2 +603,3 @@
+ Policy.KeepAutoType = true;
if ((isa<CXXMethodDecl>(FD) &&
cast<CXXMethodDecl>(FD)->getParent()->isLambda()) ||
----------------
This existing code is already trying to handle this situation. Did your tests
fail without your change? If so, why?
(The existing code is wrong for decltype(auto), auto*, and so on, but that is
not the case your tests seem to be covering.)
http://reviews.llvm.org/D5365
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits