Re: c++: Make spell corrections consistent

2020-10-05 Thread Nathan Sidwell
On 10/5/20 10:17 AM, Jakub Jelinek wrote: On Mon, Oct 05, 2020 at 09:39:01AM -0400, Nathan Sidwell wrote: My change to namespace-scope spell corrections ignored the issue that different targets might have different builtins, and therefore perturb iteration order. This fixes it by using an inter

Re: c++: Make spell corrections consistent

2020-10-05 Thread Jakub Jelinek via Gcc-patches
On Mon, Oct 05, 2020 at 09:39:01AM -0400, Nathan Sidwell wrote: > My change to namespace-scope spell corrections ignored the issue that > different targets might have different builtins, and therefore perturb > iteration order. This fixes it by using an intermediate array of > identifier, wh

c++: Make spell corrections consistent

2020-10-05 Thread Nathan Sidwell
My change to namespace-scope spell corrections ignored the issue that different targets might have different builtins, and therefore perturb iteration order. This fixes it by using an intermediate array of identifier, which we sort before considering. gcc/cp/ * name-lookup.c (ma