https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120012
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:c9e3181516f1c0786f81b9c813581bf986a6300a commit r15-9664-gc9e3181516f1c0786f81b9c813581bf986a6300a 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. (cherry picked from commit b4b4dfbd22e06877052bd4cc4b191d9d138155cf)