re PR libstdc++/77641 (std::variant copy-initialization fails for type with non-trivi...
authorTim Shen <timshen@google.com>
Thu, 22 Sep 2016 03:15:58 +0000 (03:15 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Thu, 22 Sep 2016 03:15:58 +0000 (03:15 +0000)
commit41501d1ae708f6977d957b61f797fda15ce33f0b
treee30b1a795c8d8a407956e66b3e2f432308d98a84
parent77d7987a0cea2353b7bb1f11713577269d34c787
re PR libstdc++/77641 (std::variant copy-initialization fails for type with non-trivial constexpr ctor)

PR libstdc++/77641
* include/std/variant (_Variant_storage::_Variant_storage):
Change _Variant_storage's union to be default constructible.
* testsuite/20_util/variant/compile.cc: New test.

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