Re: [PATCH] c++: Fix up build_m_component_ref [PR113599]

2024-01-25 Thread Jason Merrill
On 1/25/24 14:14, Jakub Jelinek wrote: Hi! The following testcase reduced from GDB is miscompiled starting with r14-5503 PR112427 change. The problem is in the build_m_component_ref hunk, which changed - datum = fold_build_pointer_plus (fold_convert (ptype, datum), component); + datum

Re: [PATCH] c++: Fix up build_m_component_ref [PR113599]

2024-01-25 Thread Patrick Palka
On Thu, 25 Jan 2024, Patrick Palka wrote: > On Thu, 25 Jan 2024, Jakub Jelinek wrote: > > > Hi! > > > > The following testcase reduced from GDB is miscompiled starting with > > r14-5503 PR112427 change. > > The problem is in the build_m_component_ref hunk, which changed > > - datum =

Re: [PATCH] c++: Fix up build_m_component_ref [PR113599]

2024-01-25 Thread Patrick Palka
On Thu, 25 Jan 2024, Jakub Jelinek wrote: > Hi! > > The following testcase reduced from GDB is miscompiled starting with > r14-5503 PR112427 change. > The problem is in the build_m_component_ref hunk, which changed > - datum = fold_build_pointer_plus (fold_convert (ptype, datum), >

[PATCH] c++: Fix up build_m_component_ref [PR113599]

2024-01-25 Thread Jakub Jelinek
Hi! The following testcase reduced from GDB is miscompiled starting with r14-5503 PR112427 change. The problem is in the build_m_component_ref hunk, which changed - datum = fold_build_pointer_plus (fold_convert (ptype, datum), component); + datum = cp_convert (ptype, datum, complain); +