Protect allocator-overloads of tuple-from-tuple constructors from cases that would...
authorVille Voutilainen <ville.voutilainen@gmail.com>
Sun, 5 Jun 2016 17:39:10 +0000 (20:39 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Sun, 5 Jun 2016 17:39:10 +0000 (20:39 +0300)
commit7a66745357510da6a18759839e4d8fc4715166a0
tree109cc8e6e390f10f2dd43532ae7ba194cfaf4780
parentb2d83bd2c78021ed68b04c9d426925ef947dddaf
Protect allocator-overloads of tuple-from-tuple constructors from cases that would create dangling references.

Protect allocator-overloads of tuple-from-tuple constructors
from cases that would create dangling references.
* include/std/tuple (tuple(allocator_arg_t, const _Alloc&,
  const tuple<_UElements...>&), tuple(allocator_arg_t, const _Alloc&,
  tuple<_UElements...>&&)): Add a check for _NonNestedTuple.
* testsuite/20_util/tuple/cons/nested_tuple_construct.cc: Adjust.

From-SVN: r237106
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/tuple
libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc