compiler: in Sort_bindings return false if comparing value to itself
commit5ee8e1d1b0c0d9f6310d27a37a6162e0be80e413
authorzhangjian <zj.cosmos@gmail.com>
Tue, 21 Jun 2022 16:08:47 +0000 (21 16:08 +0000)
committerIan Lance Taylor <iant@golang.org>
Thu, 23 Jun 2022 19:44:43 +0000 (23 12:44 -0700)
tree1c5a6d0e7944702aa1d602fabc77e57bae4176d3
parent038a7150ec07770174907b93bc93caaa1e019f92
compiler: in Sort_bindings return false if comparing value to itself

Some versions of std::sort may pass elements at the same iterator location.

Fixes golang/go#53483

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/413434
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/export.cc