https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109678
--- Comment #5 from CVS 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:a43f3616c0069541b1f465eea67285eeeff36785 commit r14-410-ga43f3616c0069541b1f465eea67285eeeff36785 Author: Jason Merrill <ja...@redhat.com> Date: Mon May 1 21:03:45 2023 -0400 c++: look for empty base at specific offset [PR109678] While looking at the empty base handling for 109678, it occurred to me that we ought to be able to look for an empty base at a specific offset, not just in general. PR c++/109678 gcc/cp/ChangeLog: * cp-tree.h (lookup_base): Add offset parm. * constexpr.cc (cxx_fold_indirect_ref_1): Pass it. * search.cc (struct lookup_base_data_s): Add offset. (dfs_lookup_base): Handle it. (lookup_base): Pass it.