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
@@ -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
@@ -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
@@ -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
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
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