variant (variant::operator=): Fix assignment on references.
authorTim Shen <timshen@google.com>
Thu, 22 Sep 2016 08:45:55 +0000 (08:45 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Thu, 22 Sep 2016 08:45:55 +0000 (08:45 +0000)
commitc42bc5d73bcfa5c631a4da35830a710a11d507b7
treeba386e9d2b903162a443a7ca5dd8e359c7987b4e
parenta8de3002f19eb09cf95d36f1a97e30f234df7d9e
variant (variant::operator=): Fix assignment on references.

* libstdc++-v3/include/std/variant (variant::operator=): Fix assignment
on references.
* libstdc++-v3/testsuite/20_util/variant/compile.cc: Add test.

From-SVN: r240343
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant
libstdc++-v3/testsuite/20_util/variant/compile.cc