[PATCH] D37442: [C++17] Disallow lambdas in template parameters (PR33696).

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 5 13:26:37 PDT 2017


rsmith added inline comments.


================
Comment at: include/clang/Sema/Sema.h:979-980
                                       Decl *ManglingContextDecl,
-                                      bool IsDecltype)
+                                      bool IsDecltype,
+                                      bool IsLambdaValid)
       : Context(Context), ParentCleanup(ParentCleanup),
----------------
Instead of a sequence of `bool`s, can you add an enum for `decltype` / template argument / other?


https://reviews.llvm.org/D37442





More information about the cfe-commits mailing list