zwuis wrote:

> To establish the bindings to the subobjects of `e`, expressions like 
> ```e.m_i```, ```e[i]```, or ```get<i>(e)``` are formed.

>From the prospective of C++ standard, there are no `e.m_i` and `e[i]`. 
>Accessing array elements / members is another 'magic'.

I just realize that there is an pre-existing issue that variables are marked 
odr-used for non-`constexpr` case, so it's acceptable to me.

---

The reproducer is not a minimal reproducer. Packs can be removed from 
structured bindings.

Please add tests of other 2 kinds of structured bindings.

https://github.com/llvm/llvm-project/pull/213534
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to