]> gcc.gnu.org Git - gcc.git/commit
c++: __is_trivially_xible and multi-arg aggr paren init [PR102535]
authorPatrick Palka <ppalka@redhat.com>
Thu, 30 Sep 2021 21:54:17 +0000 (17:54 -0400)
committerPatrick Palka <ppalka@redhat.com>
Wed, 6 Oct 2021 13:43:15 +0000 (09:43 -0400)
commitd80c0e4584acc204ca9a2f8880ad455fef48371f
treed8b89106349f35f38bf8047fd70529db19134b7b
parente84436a273f0fbb42b9785ff5bb1deaf9a500f37
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)
gcc/cp/method.c
gcc/testsuite/g++.dg/ext/is_trivially_constructible7.C [new file with mode: 0644]
This page took 0.062713 seconds and 6 git commands to generate.