[clang] [clang][bytecode] Avoid revisiting decomposition decl in visitDeclRef (PR #144226)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 15 02:34:51 PDT 2025
================
@@ -141,3 +141,13 @@ template <int x> constexpr auto c() {
}
auto y = c<1>(); // both-note {{in instantiation of function template specialization 'c<1>' requested here}}
+
+namespace non_constexpr_structured_binding {
+
+void f1() {
+ int arr[2] = {};
+ auto [a, b] = arr;
+ static_assert(&a != &b);
+}
+
+}
----------------
tbaederr wrote:
```suggestion
namespace NonConstexprStructuredBinding {
void f1() {
int arr[2] = {};
auto [a, b] = arr;
static_assert(&a != &b);
}
}
```
https://github.com/llvm/llvm-project/pull/144226
More information about the cfe-commits
mailing list