[Bug libstdc++/91807] [9/10/11 Regression] std::variant with multiple identical types assignment fail to compile
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 2 19:17:20 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91807
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Ville Voutilainen <ville@gcc.gnu.org>:
https://gcc.gnu.org/g:dbca7a69f276e4829354f87f2747ebff36f6090e
commit r11-1793-gdbca7a69f276e4829354f87f2747ebff36f6090e
Author: Ville Voutilainen <ville.voutilainen@gmail.com>
Date: Thu Jul 2 22:16:39 2020 +0300
PR libstdc++/91807
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.
More information about the Gcc-bugs
mailing list