rnk added inline comments.

================
Comment at: lib/AST/MicrosoftMangle.cpp:838
+          if (Func)
+            LambdaId = Func->getNumParams() - Parm->getFunctionScopeIndex();
+          else if (LambdaManglingNumber)
----------------
Isn't this no good if I have two lambdas in one default arg?
  inline int f(int x = [] { return 1; }() + [] { return 2; }()) { return x; }
  int main() { return f(); }
We probably need <lambda_${argno}_${id}>. =/


https://reviews.llvm.org/D27226



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to