Go to file
Faisal Vali 66605d40a7 Fix an instantiation bug with nested generic lambdas and conversion to fptrs.
This patch fixes the typelocs of the conversion-operator and the conversion-operator-name and adds the parameters of the call operator to the FunctionProtoTypeLoc of the respective entities. Thus, when the template declarations (conversion operators) undergo deduction and instantiation/transformation/substitution - they add themselves to the local instantiation scope if needed.

This patch supports the following:

auto L = [](auto b) {
  return [](auto a) ->decltype(a) { return a; };
};
int (*fp)(int) = L(8);

Richard LGTM'd this patch: http://llvm-reviews.chandlerc.com/D1831

Thanks!

llvm-svn: 193294
2013-10-24 01:05:22 +00:00
clang Fix an instantiation bug with nested generic lambdas and conversion to fptrs. 2013-10-24 01:05:22 +00:00
clang-tools-extra Refactoring transform-specific options 2013-10-17 17:57:36 +00:00
compiler-rt [ASan] ASan can be combined with LSan and UBSan, so export symbol from them as well. 2013-10-23 15:36:22 +00:00
debuginfo-tests don't use CHECK-NEXT because it may be on the same line. 2013-09-18 23:01:54 +00:00
libclc Clean-up dependency files 2013-10-23 02:49:33 +00:00
libcxx Update status of issues 2013-10-23 05:59:18 +00:00
libcxxabi Move local Db type out to namespace scope. 2013-10-22 16:45:48 +00:00
lld Run layout-transitivity test only when debugging is enabled. 2013-10-23 21:15:48 +00:00
lldb Fixed format strings as they still must specicy a '%' prior to using PRI*64 macros. 2013-10-23 18:24:30 +00:00
llvm Clarify comments in genLoopLimit. 2013-10-24 00:43:38 +00:00
openmp Update web pages to include style sheets and referenced documents missed before. 2013-10-03 11:55:28 +00:00
polly clang-format: No empty line after 'public:' 2013-10-15 14:41:02 +00:00