================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to