[Bug c++/89381] [7/8 Regression] Implicit copy constructor cannot be generated after unrelated class definition

2019-11-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89381

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.5 |8.4

--- Comment #5 from Richard Biener  ---
The GCC 7 branch is being closed, re-targeting to GCC 8.4.

[Bug c++/89381] [7/8 Regression] Implicit copy constructor cannot be generated after unrelated class definition

2019-03-08 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89381

--- Comment #4 from Jason Merrill  ---
Author: jason
Date: Fri Mar  8 21:39:58 2019
New Revision: 269509

URL: https://gcc.gnu.org/viewcvs?rev=269509&root=gcc&view=rev
Log:
PR c++/89381 - implicit copy and using-declaration.

Here the used base::operator= gets into the list of foo's bindings for
operator=, but it shouldn't make the copy ctor deleted.

* class.c (classtype_has_move_assign_or_move_ctor_p): Don't consider
op= brought in by a using-declaration.

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

[Bug c++/89381] [7/8 Regression] Implicit copy constructor cannot be generated after unrelated class definition

2019-03-06 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89381

Jason Merrill  changed:

   What|Removed |Added

Summary|[7/8/9 Regression] Implicit |[7/8 Regression] Implicit
   |copy constructor cannot be  |copy constructor cannot be
   |generated after unrelated   |generated after unrelated
   |class definition|class definition

--- Comment #3 from Jason Merrill  ---
Fixed on trunk so far.