[Bug libstdc++/114147] [11/12/13/14 Regression] tuple allocator-extended constructor requires non-explicit default constructor

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 4 20:25:28 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114147

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:

https://gcc.gnu.org/g:0a545ac7000501844670add0b3560ebdbcb123c6

commit r14-9307-g0a545ac7000501844670add0b3560ebdbcb123c6
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Mar 1 11:16:58 2024 +0000

    libstdc++: Add missing std::tuple constructor [PR114147]

    I caused a regression with commit r10-908 by adding a constraint to the
    non-explicit allocator-extended default constructor, but seemingly
    forgot to add an explicit overload with the corresponding constraint.

    libstdc++-v3/ChangeLog:

            PR libstdc++/114147
            * include/std/tuple (tuple::tuple(allocator_arg_t, const Alloc&)):
            Add missing overload of allocator-extended default constructor.
            (tuple<T1,T2>::tuple(allocator_arg_t, const Alloc&)): Likewise.
            * testsuite/20_util/tuple/cons/114147.cc: New test.


More information about the Gcc-bugs mailing list