[PATCH] D147070: Improve requirement clause limitation on non templated function
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 28 11:52:06 PDT 2023
cor3ntin added a comment.
LGTM except the arguably missing tests.
================
Comment at: clang/lib/Sema/SemaDecl.cpp:11886-11887
+ // - an enumerator for an enumeration that is a templated entity, or
+ // - the closure type of a lambda-expression ([expr.prim.lambda.closure])
+ // appearing in the declaration of a templated entity. [Note 6: A local
+ // class, a local or block variable, or a friend function defined in a
----------------
I think we have no test for this case, might be worth adding.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147070/new/
https://reviews.llvm.org/D147070
More information about the cfe-commits
mailing list