[PATCH] Implement transformations of non-capturing nested lambdas.

Faisal Vali faisalv at yahoo.com
Wed Oct 2 21:55:31 PDT 2013


  What's wrong with my approach of marking the specialization as a specialization instead? It does not trigger any assertion violations and all seems to work well?


================
Comment at: lib/Sema/SemaTemplateInstantiate.cpp:953
@@ +952,3 @@
+        // 'FunctionDecl::getTemplateInstantiationPattern()' 
+        NewCallOperatorTemplate->setMemberSpecialization();
+      }
----------------
But this seems to work and return the correct getTemplateInstantiationPattern - that allows addInstantiatedParameters to work as expected?

What's wrong with this approach?


http://llvm-reviews.chandlerc.com/D1784



More information about the cfe-commits mailing list