[clang] [Clang] Correctly propagate type aliases' unexpanded flags up to lambda (PR #122875)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 16 19:19:08 PST 2025


================
@@ -47,6 +49,10 @@ template <class = void> void f() {
     }(), ...);
   }(1, 2);
 
+  []<class... Is>(Is...) {
+    ([] { using T = ElementType<Is>; }(), ...);
----------------
zyn0217 wrote:

Yes, that's exactly why the issue arises.

https://github.com/llvm/llvm-project/pull/122875


More information about the cfe-commits mailing list