[PATCH] D159358: [Clang] Realize generic lambda call operators are dependent sooner
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 1 07:00:35 PDT 2023
cor3ntin created this revision.
Herald added a project: All.
cor3ntin requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
When parsing a trailing return type / noexcept / constraint
of a generic lambda, we need to know that we are in a dependent
context. We currently don't because we only create a TemplateDecl
for the call operator one its fully parsed.
This patch attach a template decl to the call operator as soon
as the parameter declaration clause is parsed - the point at which
we have collected all template parameters
Fixes #64689
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D159358
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/AST/DeclCXX.h
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaLambda.cpp
clang/lib/Sema/TreeTransform.h
clang/test/SemaCXX/cxx2a-template-lambdas.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159358.555364.patch
Type: text/x-patch
Size: 5489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230901/7c6fc28e/attachment.bin>
More information about the cfe-commits
mailing list