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

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

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

commit r14-10221-ga9837934203d41c96b5cf05e34f68c0d3311c973
Author: Patrick Palka <ppa...@redhat.com>
Date:   Fri May 17 09:02:52 2024 -0400

    c++: aggregate CTAD w/ paren init and bases [PR115114]

    During aggregate CTAD with paren init, we're accidentally overlooking
    base classes since TYPE_FIELDS of a template type doesn't contain
    corresponding base fields.  So we need to consider them separately.

            PR c++/115114

    gcc/cp/ChangeLog:

            * pt.cc (maybe_aggr_guide): Consider bases in the paren init case.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/class-deduction-aggr15.C: New test.

    Reviewed-by: Jason Merrill <ja...@redhat.com>
    (cherry picked from commit 5aaf47cb1987bbc5508c4b9b7dad5ea7d69af2c2)

Reply via email to