[clang] [Clang][Bytecode] Implement P1061 structured binding pack (PR #146474)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 1 02:45:39 PDT 2025


================
@@ -17,7 +18,7 @@ struct fake_tuple {
   int arr[4] = {1, 2, 3, 6};
 
   template <unsigned i>
-  int get() {
+  constexpr int& get() {
----------------
zwuis wrote:

> Were these two functions never called in a constant context before?

Yes. Only semantic analysis was performed on these functions.

https://github.com/llvm/llvm-project/pull/146474


More information about the cfe-commits mailing list