[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)

2025-05-14 Thread via cfe-commits
cor3ntin wrote: @ricejasonf Can you add a release note? Sorry for the lack of updates - but feel free to ping us weekly in the future https://github.com/llvm/llvm-project/pull/121225 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)

2024-12-28 Thread Younan Zhang via cfe-commits
@@ -0,0 +1,14 @@ +// RUN: %clang_cc1 -fsyntax-only %s -verify +// expected-no-diagnostics + +template +int g() { + return [] (auto) -> int { +struct L { + int m = i; +}; +return 0; + } (42); zyn0217 wrote: Yeah, probably also worth an assertio

[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)

2024-12-28 Thread via cfe-commits
@@ -0,0 +1,14 @@ +// RUN: %clang_cc1 -fsyntax-only %s -verify +// expected-no-diagnostics + +template +int g() { + return [] (auto) -> int { +struct L { + int m = i; +}; +return 0; + } (42); cor3ntin wrote: That seems about right. But the fix

[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)

2024-12-27 Thread Younan Zhang via cfe-commits
@@ -0,0 +1,14 @@ +// RUN: %clang_cc1 -fsyntax-only %s -verify +// expected-no-diagnostics + +template +int g() { + return [] (auto) -> int { +struct L { + int m = i; +}; +return 0; + } (42); zyn0217 wrote: I feel like this is some fallout of n

[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jason Rice (ricejasonf) Changes In the development of P1061 (Structured Bindings Introduce a Patch), I found this bug in the template instantiation of a local class. The issue is caused by the instantiation of the original template and no

[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)

2024-12-27 Thread Jason Rice via cfe-commits
https://github.com/ricejasonf created https://github.com/llvm/llvm-project/pull/121225 In the development of P1061 (Structured Bindings Introduce a Patch), I found this bug in the template instantiation of a local class. The issue is caused by the instantiation of the original template and not