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

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

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

commit r12-8144-gec03862f809e544a9b7d28067e51597dc92a0244
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Apr 12 17:46:59 2022 -0400

    c++: empty base constexpr -fno-elide-ctors [PR105245]

    The patch for 100111 extended our handling of empty base elision to the
case
    where the derived class has no other fields, but we still need to make sure
    that there's some initializer for the derived object.

            PR c++/105245
            PR c++/100111

    gcc/cp/ChangeLog:

            * constexpr.cc (cxx_eval_store_expression): Build a CONSTRUCTOR
            as needed in empty base handling.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1y/constexpr-empty2.C: Add -fno-elide-constructors.

Reply via email to