[PR c++/87531] operator= lookup in templates
authorNathan Sidwell <nathan@acm.org>
Wed, 28 Nov 2018 21:25:06 +0000 (21:25 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 28 Nov 2018 21:25:06 +0000 (21:25 +0000)
commitd794ab85f7b14b546701c23f357d49bbab474d39
treeaf6a1973befb50407eadb8f349b613955ef97097
parent410902c31caa82cf414f020b5db51ddc20159f20
[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.

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