Re: [PATCH] c++: Evaluate immediate invocation call arguments with mce_true [PR119150]

2025-03-12 Thread Jason Merrill
On 3/7/25 11:53 AM, Jakub Jelinek wrote: Hi! Since Marek's r14-4140 which moved immediate invocation evaluation from build_over_call to cp_fold_r, the following testcase is miscompiled. The a = foo (bar ()); case is actually handled right, that is handled in cp_fold_r and the whole CALL_EXPR is

Re: [PATCH] c++: Evaluate immediate invocation call arguments with mce_true [PR119150]

2025-03-07 Thread Marek Polacek
On Fri, Mar 07, 2025 at 05:53:58PM +0100, Jakub Jelinek wrote: > Hi! > > Since Marek's r14-4140 which moved immediate invocation evaluation > from build_over_call to cp_fold_r, the following testcase is miscompiled. > > The a = foo (bar ()); case is actually handled right, that is handled > in cp

[PATCH] c++: Evaluate immediate invocation call arguments with mce_true [PR119150]

2025-03-07 Thread Jakub Jelinek
Hi! Since Marek's r14-4140 which moved immediate invocation evaluation from build_over_call to cp_fold_r, the following testcase is miscompiled. The a = foo (bar ()); case is actually handled right, that is handled in cp_fold_r and the whole CALL_EXPR is at that point evaluated by cp_fold_immedia