re PR c++/83825 (ICE on invalid C++ code with shadowed identifiers: in operator[...
authorJakub Jelinek <jakub@redhat.com>
Tue, 16 Jan 2018 08:43:31 +0000 (09:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 16 Jan 2018 08:43:31 +0000 (09:43 +0100)
commit774ae645c0c30c19a751b5c3713beef3aa5d8f28
tree4daef7e4540d724bef6cdfb15bc985594c875b28
parent206c8300cae62693da0d138a897bbf4e62089813
re PR c++/83825 (ICE on invalid C++ code with shadowed identifiers: in operator[], at vec.h:826)

PR c++/83825
* name-lookup.c (member_vec_dedup): Return early if len is 0.
(resort_type_member_vec, set_class_bindings,
insert_late_enum_def_bindings): Use vec qsort method instead of
calling qsort directly.

* g++.dg/template/pr83825.C: New test.

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