[Bug c++/84866] Incorrectly instantiating move ctor when a union's move constructor is implicitly deleted

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 9 06:35:33 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-12-09

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, the problem is the move constructor is not being deleted for union
T1 when the field x has a non-trivial move constructor.


More information about the Gcc-bugs mailing list