[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 28 01:59:15 PST 2024
================
@@ -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
More information about the cfe-commits
mailing list