PR libstdc++/91807
authorVille Voutilainen <ville.voutilainen@gmail.com>
Thu, 2 Jul 2020 19:16:39 +0000 (22:16 +0300)
committerVille Voutilainen <ville.voutilainen@gmail.com>
Thu, 2 Jul 2020 19:16:39 +0000 (22:16 +0300)
commitdbca7a69f276e4829354f87f2747ebff36f6090e
treeae7042379d95635ca00deddb76f4786aed9ab7a6
parentb88744905a46be44ffa3c57d46080f601ae832b8
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.
libstdc++-v3/include/std/variant
libstdc++-v3/testsuite/20_util/variant/91807.cc [new file with mode: 0644]