On 2/24/25 5:52 AM, Jakub Jelinek wrote:
Hi!
The following testcases segfault because the new range for -frange-for-ext-temps
temporary extension extends even the internal TARGET_EXPRs created by
get_member_function_from_ptrfunc.
The following patch fixes that by marking those TARGET_EXPR_INTERNAL_P.
I'm not calling get_internal_target_expr because I really want to force
the TARGET_EXPR creation rather than say mark some existing TARGET_EXPR
internal,
Hmm, good point, but that seems like a reason to use force_target_expr
in gen_internal_target_expr.
and get_internal_target_expr doesn't take complain argument
either and always uses tf_warning_or_error.
That shouldn't be an issue for any internal temporaries; complain is
only relevant for building the cleanup that internal temps must not have.
It looks like there are a few more internal uses of force_target_expr in
cp_finish_decl and build_comparison_op.
Jason