re PR libstdc++/87619 (sizeof(std::variant) can be reduced if its variant_size is...
authorVille Voutilainen <ville.voutilainen@gmail.com>
Wed, 17 Oct 2018 19:08:51 +0000 (22:08 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Wed, 17 Oct 2018 19:08:51 +0000 (22:08 +0300)
commit4026227f21e6c06cbadfa3ac3ab8699719b2bc65
tree61ef294feae75e132f229a68bfd56b382c6cf3f6
parentfc8abc466071bb3d8997e9fe7f0ae3faddcf50b8
re PR libstdc++/87619 (sizeof(std::variant) can be reduced if its variant_size is UCHAR_MAX)

PR libstdc++/87619

* include/std/variant (__select_index): Fix an off-by-one.
* testsuite/20_util/variant/87619.cc: New.

From-SVN: r265247
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant
libstdc++-v3/testsuite/20_util/variant/87619.cc [new file with mode: 0644]