This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r237106 - in /trunk/libstdc++-v3: ChangeLog inc...
- From: ville at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sun, 05 Jun 2016 17:39:10 -0000
- Subject: r237106 - in /trunk/libstdc++-v3: ChangeLog inc...
Author: ville
Date: Sun Jun 5 17:39:10 2016
New Revision: 237106
URL: https://gcc.gnu.org/viewcvs?rev=237106&root=gcc&view=rev
Log:
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.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/std/tuple
trunk/libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc