Re: [PATCH] c++: Handle array members in build_comparison_op [PR93480]

2020-12-22 Thread Jason Merrill via Gcc-patches
On 12/21/20 3:12 AM, Jakub Jelinek wrote: Hi! http://eel.is/c++draft/class.compare.default#6 says for the expanded list of subobjects: "In that list, any subobject of array type is recursively expanded to the sequence of its elements, in the order of increasing subscript." but build_comparison_o

[PATCH] c++: Handle array members in build_comparison_op [PR93480]

2020-12-21 Thread Jakub Jelinek via Gcc-patches
Hi! http://eel.is/c++draft/class.compare.default#6 says for the expanded list of subobjects: "In that list, any subobject of array type is recursively expanded to the sequence of its elements, in the order of increasing subscript." but build_comparison_op just tried to compare the whole arrays, wh