On Tue, 19 Sep 2017, Nathan Sidwell wrote: > On 09/19/2017 07:06 AM, Alexander Monakov wrote: > > Hi, > > > > After recent changes, the member_name_cmp qsort comparator can indicate > > A < B < A (i.e. lacks anti-commutativity) for distinct TYPE_DECL nodes > > that have the same source location. If their order doesn't matter, the > > comparator should return 0. > > Where do we get such type decls?
The first instance that tripped qsort checking for me was in PCH generation. I think by adding gcc_assert (DECL_SOURCE_LOCATION (a) != DECL_SOURCE_LOCATION (b)); at the appropriate point in this comparator you can see for yourself. Thanks. Alexander