Re: [PATCH] c++, tree: walk TREE_VEC (and VECTOR_CST) in natural order [PR101886]

2022-12-20 Thread Jason Merrill via Gcc-patches
On 12/20/22 10:30, Patrick Palka wrote: Unfortunately the extract_autos_r fix in r13-4799-ga7c8036b26082d is derailed by the fact that walk_tree_1 currently walks the elements of a TREE_VEC in reverse, which means for A in the below testcase extract_autos_r ends up adjusting the

[PATCH] c++, tree: walk TREE_VEC (and VECTOR_CST) in natural order [PR101886]

2022-12-20 Thread Patrick Palka via Gcc-patches
Unfortunately the extract_autos_r fix in r13-4799-ga7c8036b26082d is derailed by the fact that walk_tree_1 currently walks the elements of a TREE_VEC in reverse, which means for A in the below testcase extract_autos_r ends up adjusting the TEMPLATE_TYPE_IDX of the first auto rather than the second