Re: [v2 of PATCH 08/14] cp/tree.c: strip location wrappers in lvalue_kind

2017-12-20 Thread Jason Merrill
On Wed, Dec 20, 2017 at 5:14 PM, David Malcolm wrote: > On Mon, 2017-12-11 at 18:39 -0500, Jason Merrill wrote: >> On 11/10/2017 04:45 PM, David Malcolm wrote: >> > Without this, then lvalue_p returns false for decls, and hence >> > e.g. uses of them for references fail. >> > >> > Stripping locati

[v2 of PATCH 08/14] cp/tree.c: strip location wrappers in lvalue_kind

2017-12-20 Thread David Malcolm
On Mon, 2017-12-11 at 18:39 -0500, Jason Merrill wrote: > On 11/10/2017 04:45 PM, David Malcolm wrote: > > Without this, then lvalue_p returns false for decls, and hence > > e.g. uses of them for references fail. > > > > Stripping location wrappers in lvalue_kind restores the correct > > behavior