[PATCH] Fix for bug 17427 - Assertion failed: "Computed __func__ length differs from type!"
Richard Smith
richard at metafoo.co.uk
Tue Sep 16 10:07:30 PDT 2014
================
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
More information about the cfe-commits
mailing list