[PR c++/87531] Fix second bug
authorNathan Sidwell <nathan@acm.org>
Thu, 13 Dec 2018 15:57:24 +0000 (15:57 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 13 Dec 2018 15:57:24 +0000 (15:57 +0000)
commit2139fd74f31449c01f347bd1005cfab52cde7969
treed074b17ab6572bf9768b2c594b39ccb3092705fb
parentf1d42e85ad96f0c2977118c019a8a31e895ea1da
[PR c++/87531] Fix second bug

https://gcc.gnu.org/ml/gcc-patches/2018-12/msg00929.html

PR c++/87531
* class.c (finish_struct): Set DECL_CONTEXT of template assign op.
* name-lookup.c (get_class_binding_direct): Don't strip using-decl
of overload here.
* parser.c (cp_parser_postfix_expression): Cope with using decl in
overload set.
* semantics.c (finish_id_expr): Likewise.

* g++.dg/lookup/pr87531-2.C: New.

From-SVN: r267096
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/name-lookup.c
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/pr87531-2.C [new file with mode: 0644]