[PATCH] libstdc++: std::variant with multiple identical types assignment fail to compile [PR91807]

Ville Voutilainen ville.voutilainen@gmail.com
Wed Jul 1 20:32:28 GMT 2020


On Wed, 1 Jul 2020 at 21:09, Ville Voutilainen
<ville.voutilainen@gmail.com> wrote:
> And sure, s/move-construction/move-assignment/.

And with dg-options.

2020-07-01  Ville Voutilainen  <ville.voutilainen@gmail.com>

    PR libstdc++/91807
    * include/std/variant
    (_Copy_assign_base::operator=(const _Copy_assign_base&):
    Do the move-assignment from a temporary so that the temporary
    is constructed with an explicit index.
    * testsuite/20_util/variant/91807.cc: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr91807.diff
Type: text/x-patch
Size: 1860 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20200701/88b56f98/attachment.bin>


More information about the Libstdc++ mailing list