On 8/6/23 14:15, gnaggnoyil wrote:
DR 2386 updated the tuple_size requirements for structured binding and
it now requires tuple_size to be considered only if
std::tuple_size<TYPE> names a complete class type with member value. GCC
before this patch does not follow the updated requrements, and this
patch is intended to implement it.
DR 2386
PR c++/110216
gcc/cp/ChangeLog:
* decl.cc (get_tuple_size): Update implemetation to follow DR 2386.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1z/pr110216.C: New test.
Thanks! Unfortunately, I see that this patch causes a testsuite failure
in cpp1z/decomp10.C. This seems to be an intended change of behavior,
but please also update that testcase, and remember to run the testsuite
before submitting a patch.
Jason