https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87531
--- Comment #12 from Nathan Sidwell <nathan at gcc dot gnu.org> --- Author: nathan Date: Thu Dec 13 17:47:52 2018 New Revision: 267099 URL: https://gcc.gnu.org/viewcvs?rev=267099&root=gcc&view=rev Log: [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. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/lookup/pr87531-2.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/class.c branches/gcc-8-branch/gcc/cp/name-lookup.c branches/gcc-8-branch/gcc/cp/parser.c branches/gcc-8-branch/gcc/cp/semantics.c branches/gcc-8-branch/gcc/testsuite/ChangeLog