On Wed, Jun 25, 2025 at 12:37:33PM -0400, Jason Merrill wrote:
> Ah, looks like fixed_type_or_null needs to handle a CALL_EXPR of class type
> like a TARGET_EXPR.  I also wonder why the call isn't already wrapped in a
> TARGET_EXPR by build_cxx_call=>build_cplus_new at this point.

Wonder if it has anything to do with being in unevaluated context (and
whether perhaps cp_build_addr_expr isn't undesirable for that case, because
that can make vars odr-used etc.; are are odr uses in unevaluated context
also supposed to make vars odr-used?).

        Jakub

Reply via email to