diff options
| author | Faisal Vali <faisalv@yahoo.com> | 2013-10-24 01:05:22 +0000 |
|---|---|---|
| committer | Faisal Vali <faisalv@yahoo.com> | 2013-10-24 01:05:22 +0000 |
| commit | 605f91ffd18f35ffcb5fcdd38379bd09b67a6cb8 (patch) | |
| tree | f2060aee5d7f9ac54068df6a6c0071165b1ba635 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 4a589c705d3b67a006fadfb140c4fa4d3b6df98d (diff) | |
| download | clang-605f91ffd18f35ffcb5fcdd38379bd09b67a6cb8.tar.gz clang-605f91ffd18f35ffcb5fcdd38379bd09b67a6cb8.tar.bz2 clang-605f91ffd18f35ffcb5fcdd38379bd09b67a6cb8.tar.xz | |
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!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
