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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

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

commit r10-10725-gd939233ef460133e012d8f40f9d8c8fcb73bb7b8
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Apr 14 15:34:14 2022 -0400

    c++: constexpr trivial -fno-elide-ctors [PR104646]

    The constexpr constructor checking code got confused by the expansion of a
    trivial copy constructor; we don't need to do that checking for defaulted
    ctors, anyway.

            PR c++/104646

    gcc/cp/ChangeLog:

            * constexpr.c (maybe_save_constexpr_fundef): Don't do extra
            checks for defaulted ctors.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/constexpr-fno-elide-ctors1.C: New test.

Reply via email to