[Bug c++/87531] [8/9 Regression] assignment operator does nothing if performed as a call via operator=

nathan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 29 12:51:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87531

--- Comment #5 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Thu Nov 29 12:50:45 2018
New Revision: 266614

URL: https://gcc.gnu.org/viewcvs?rev=266614&root=gcc&view=rev
Log:
[PR c++/87531] operator= lookup in templates

https://gcc.gnu.org/ml/gcc-patches/2018-11/msg02301.html
        PR c++/87531
        * class.c (finish_struct): In a template, add artificial using
        decl for operator=.

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

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/lookup/pr87531.C
Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/class.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list