This is an archive of the discontinued LLVM Phabricator instance.

[clang] fix crash on generic lambda with lambda in decltype
ClosedPublic

Authored by v1nh1shungry on Jan 1 2023, 10:24 PM.

Details

Summary

Relevant issue: https://github.com/llvm/llvm-project/issues/59771

During the instantiation of a generic lambda, a non-generic lambda in
the trailing decltype is a DeclContext but not a dependent context,
so we shouldn't call PerformDependentDiagnostics on it.

Diff Detail

Event Timeline

v1nh1shungry created this revision.Jan 1 2023, 10:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 1 2023, 10:24 PM
v1nh1shungry requested review of this revision.Jan 1 2023, 10:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 1 2023, 10:24 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

This fixes #57170 (59771 was closed as a dupe of that one). I think this LG, but I'd appreciate a second set of eyes on it as there have been plenty of changes in this area recently.

I think that makes sense to me, LGTM.

erichkeane accepted this revision.Jan 13 2023, 6:39 AM
This revision is now accepted and ready to land.Jan 13 2023, 6:39 AM

Thanks for reviewing!

Makes sense to me as well.