[PATCH] D147070: Improve requirement clause limitation on non templated function

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 28 11:19:13 PDT 2023


erichkeane added inline comments.


================
Comment at: clang/lib/Sema/SemaDecl.cpp:11898
+          // defined... in a templated entity
+          !(DeclIsDefn && NewFD->isTemplated()) &&
+          // a member of a templated entity
----------------
Note we're using `isTemplated` here as a proxy for 'in a templated entity', since `isTemplated` is effectively `is a template OR in a templated entity'.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147070/new/

https://reviews.llvm.org/D147070



More information about the cfe-commits mailing list