This is an archive of the discontinued LLVM Phabricator instance.

[C++20] Support for lambdas in unevaluated context
Needs ReviewPublic

Authored by krzysztof-jusiak on Aug 20 2019, 8:35 AM.

Details

Reviewers
rsmith
Summary

Problem:

  • Lambdas in unevaluated context aren't supported in the newest clang yet but are required for our usage of jit.

Solution:

  • Add support for lambdas in unevaluated context.

Diff Detail

Repository
rC Clang

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2019, 8:35 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Can you submit the patch with the full context (ie: git diff -U9999999) ?

Doesn't this inadvertently allow them in every standard? That seems wrong.

Can you submit the patch with the full context (ie: git diff -U9999999) ?

Sure, will do it

Doesn't this inadvertently allow them in every standard? That seems wrong.

Good point, you are right, will fix it and resubmit 👍

sjanel added a subscriber: sjanel.May 27 2021, 6:00 AM

Hello,

Any news on this? GCC and MSVC support them since a while now.

Thanks a lot in advance !

Stephane

Given the lack of activity, I made another PR for the same feature https://reviews.llvm.org/D103380