re PR c++/82401 (error: qsort comparator non-negative on sorted output: 1 in insert_l...
authorJakub Jelinek <jakub@redhat.com>
Wed, 22 Nov 2017 22:35:52 +0000 (23:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 22 Nov 2017 22:35:52 +0000 (23:35 +0100)
commit6c19e703de27d0fd94bdf3e3941a4f5b7b72f4e4
treef1d1ba8a4fceb120ca9dc9ae7121b2a78948ec46
parent52af380439eab2770ad65af495e2c1a281e4b097
re PR c++/82401 (error: qsort comparator non-negative on sorted output: 1 in insert_late_enum_def_bindings on an invalid code)

PR c++/82401
* name-lookup.c (member_name_cmp): Return 0 if a == b.

* g++.dg/cpp0x/pr82401.C: New test.

From-SVN: r255084
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr82401.C [new file with mode: 0644]