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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Patrick Palka
<ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:d80c0e4584acc204ca9a2f8880ad455fef48371f

commit r11-9085-gd80c0e4584acc204ca9a2f8880ad455fef48371f
Author: Patrick Palka <ppa...@redhat.com>
Date:   Thu Sep 30 17:54:17 2021 -0400

    c++: __is_trivially_xible and multi-arg aggr paren init [PR102535]

    is_xible_helper assumes only 0- and 1-argument ctors can be trivial, but
    C++20 aggregate paren init means multi-arg ctors can now be trivial too.
    This patch relaxes the relevant early exit check accordingly.

            PR c++/102535

    gcc/cp/ChangeLog:

            * method.c (is_xible_helper): Don't exit early for multi-arg
            ctors in C++20.

    gcc/testsuite/ChangeLog:

            * g++.dg/ext/is_trivially_constructible7.C: New test.

    (cherry picked from commit 9845c52db38f15740861435f38f7e5ad8a8de2ec)

Reply via email to