================ @@ -0,0 +1,14 @@ +// RUN: %clang_cc1 -fsyntax-only %s -verify +// expected-no-diagnostics + +template <int i> +int g() { + return [] (auto) -> int { + struct L { + int m = i; + }; + return 0; + } (42); ---------------- cor3ntin wrote:
That seems about right. But the fix is probably fine? Maybe we can add a FIXME in the comment for now. https://github.com/llvm/llvm-project/pull/121225 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits