Protect allocator-overloads of tuple-from-tuple constructors
commitd0eb7782dd1dc161b1d59899ed9dde166fd48910
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Jun 2016 17:39:10 +0000 (5 17:39 +0000)
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Jun 2016 17:39:10 +0000 (5 17:39 +0000)
tree109cc8e6e390f10f2dd43532ae7ba194cfaf4780
parent8e3cd305e0fe17e24caa8f542aa9a72d98570731
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237106 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/tuple
libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc