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

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

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

commit r16-570-gb4b4dfbd22e06877052bd4cc4b191d9d138155cf
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon May 12 11:53:03 2025 -0400

    c+: -Wabi false positive [PR120012]

    The warning compares the position of a field depending on whether or not
the
    previous base/field is considered a POD for layout, but failed to consider
    whether the previous base/field is empty; layout of an empty base doesn't
    consider PODness.

            PR c++/120012

    gcc/cp/ChangeLog:

            * class.cc (check_non_pod_aggregate): Check is_empty_class.

    gcc/testsuite/ChangeLog:

            * g++.dg/abi/base-defaulted2.C: New test.

Reply via email to