[PR c++/87531] operator= lookup in templates
commitc115ab8aa1b25c707c79f8284079d0301120ce19
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Nov 2018 21:25:06 +0000 (28 21:25 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Nov 2018 21:25:06 +0000 (28 21:25 +0000)
treeaf6a1973befb50407eadb8f349b613955ef97097
parent63c3361d21bcc5d5d57e9424e687a0c9603bc916
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266590 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/pr87531.C [new file with mode: 0644]