On Thu, Sep 10, 2026 at 11:50:01AM -0400, Marek Polacek wrote:
> > @@ -8799,6 +8801,10 @@ splice (tree refl)
> > class for the access path. */
> > if (is_overloaded_fn (refl))
> > refl = baselink_for_fns (refl, /*ignore_current_class_p=*/true);
> > + /* For [:reflect_object(var):] wrap var into a VCE, so that it is an
> > lvalue,
> > + but not the var itself. */
> > + if (kind == REFLECT_OBJECT && DECL_P (refl))
> > + refl = build1 (VIEW_CONVERT_EXPR, TREE_TYPE (refl), refl);
>
> Should we give this VCE the location loc?
I think we could. Will test adjusted patch.
Jakub